How do i stop my computer shutting off after 1 minute

I assume you are using a desktop PC.

You may have a power saving profile activated, you can change this by;

Start > Control Panel > Hardware and Sound > Power Options.

from here you can adjust various settings related to power consumption.

I hope this helps.