Schedule a time for your Mac to turn on or off or go to sleep
Schedule specific times for your Mac to turn on, turn off, go to sleep, or wake from sleep. You might do this if you want to be sure your Mac turns off when you aren’t working and turns on before you come to work.
Choose Apple menu > System Preferences, then click Energy Saver.
Click Schedule, then select the options you want to use.
Schedule a startup or wake time for your Mac: Select the “Start up or wake” checkbox. Choose a day or group of days from the pop-up menu, then enter a time.
Schedule a sleep, restart, or shutdown time for your Mac: Select the bottom checkbox and choose the appropriate option from the pop-up menu on the left. Choose a day or group of days from the pop-up menu on the right, then enter a time.
Your Mac must be awake and you must be logged in for it to shut down at the scheduled time. If you are not logged in or your Mac is in sleep, it won’t shut down.
Note: If you have any documents open with unsaved changes, your Mac might not go to sleep or shut down when scheduled.