I've got a far better solution for you.
Almost every night, when I go to sleep, I like listening to a relaxing online radio.
So, I've installed a program called IdleTimer. After (you can set your desired time of idle) two hours of no activity on the computer, it automatically shuts down.
I'm running this very lite on the resources program at startup, and for the past couple of months, I forgot about having the shutdown option for my pc