https://ubuntuhandbook.org/index.php/2014/09/schedule-automatic-shutdown-ubuntu-14-04/
How to Schedule Automatic Shutdown in Ubuntu 14.04