Insomnia will remind you to take a rest and that you can always come back to the work tomorrow.
Inspired by http://sleepyti.me a website that calculates optimal times to fall asleep based on when you want to wake up.
It will notify you throughout the night when the optimal times to shutdown your computer and start to head to sleep and provide a button to do just that.
This application works well with https://justgetflux.com/