Button and switch to turn on and off LED and changing after time
I have to make an answer, since I cannot use items/links easily in a comment.

Instead of creating the application for you, I suggest you do the following:


Read/try and experiment with the default Arduino examples for a switch (see Switch
In the above example also is shown how to debounce the signal, this is needed since you want to use it as a 'toggle'.
Use a timer for millis() and check for 24 hrs (which is 1,440,000) millis, so it should fit in a long. 
Small thing: Always align brackets to make it easier for yourself and others.