Hello Tim, sorry to hear you're having trouble.
You can change when the system will go to sleep or power off by right clicking on the Start menu and then choosing Settings. Type Power into the search bar and make sure selection from there. You'll be able to adjust the times via the drop down menu on that screen.