If you use a laptop running Windows 11 the ‘hibernation mode’ does a great job of extending battery life while your away from a mains outlet.
The way hibernation mode works is that it by saving your data in memory to the hard drive using a specific file. When you turn off the laptop to save power it will resume where you left off the next time you turn the computer back on.
This helpful guide by Windows Central covers what it is, how to set it up and some of its drawbacks you should be aware of.