Shutdown Timer Classic is a small little app that allows you to set a timer for shutting down, restarting, hibernating, sleeping or locking your PC. It is completely free and open-source and does not use the internet. Feel free to contribute to the project on GitHub. Please also report any problems there by creating an issue.
Detailed information as well as the source code can be found on GitHub:
https://github.com/lukaslangrock/ShutdownTimerClassic
WARNING: Applications will be forcefully closed when using the Shutdown Timer in non-graceful mode. You might experience data loss if applications are forced to exit before having finished their operation. Please set the timer with enough headroom. You are responsible for any damage to your system or data!