This article explains how to change sleep settings in Windows 10, 8.1, and 7 via Power Options or Power & sleep settings.
How to Change Your Computer's Sleep Mode Over Time in Windows 10 [Tutorial]
To change sleep settings in Windows 10, first open the power and sleep settings:
Start by typing sleep into the Windows search box and then select Power and sleep settings.
In the Sleep section, choose how long the PC waits before going to sleep: