Is there a way i can set my pc to shutdown by itself after a time specified by me?

I suffer from insomnia and listening to self hypnosis and relaxation mp3s helps me to sleep, but of course i cannot turn off my computer whilst sleeping, so something that would shutdown my pc after say... about an hour would be lovely

So, wonderful dwellers of the pit, can this done?
Quote by Monolith295
Tobysaurus is one sexy man.

Quote by Kensai
I think I love you Tobysaurus!

Quote by CFH82
God damn, you've given me a boner Toby!
you can create a schedule for "shutdown /f" which will turn off machine... obviously set to chosen date and time