Step 1.
Open an Command Prompt.
Step 2.
Computer will turn off in 30 minutes with this command:
shutdown.exe /s /t 1800
Computer will turn off in 40 minutes with this command:
shutdown.exe /s /t 2400
Time is easy to count:
1800s=60s*30m
2400s=60s*40m