You can also set a recurring schedule for your Mac to enter sleep mode. It’s possible to set your Mac to automatically start sleep mode after being inactive for a certain amount of time.
Putting your Mac in sleep mode can help you save your battery life and get back to work quickly when you’re ready.
Mac Help Desk Mac tips How to set the sleep timer on Mac?