Hey there,
Power outages are terrible to deal with. I used to have one once every few weeks, and sometimes days at a time when I used to live on the island of Guam years ago. Laptop batteries were still Ni-Cads back then!
Today, the best laptop batteries around for laptops can be found on models like the Lenovo T450, which has a battery life of up to 11 hours! You can go for almost half the day without having to plug it in again, which is really nice.
There is another way to extend it if the power is completely out longer than that. You have two more options. One of these options is to get another battery and alternate which ones you use, so that way you would have up to 24 hours of battery life for your laptop, and only have to shut it down once to switch to the second battery.
The second option is to have a battery-backup that used to be really popular for desktops (and still is for some data centers). The UPS battery back ups stored between 4 to 8 hours and sometimes longer use of desktops which draw far more power than laptops do today. A laptop charging a battery on a UPS can probably get between 14 to 18 hours worth of charge from it, and if you couple that with the first choice, you can get up to 36 hours of use between the first battery, the backup battery for the laptop, and then a UPS.
You would have to invest a little more for the UPS, so the cheapest way is to get a second battery and have it charged. The moment the power goes out, you have all of your first battery and can then power down only to switch to the second. Again, the Lenovo T450 and similar models from Dell, Acer, HP, Asus, and others are going to give you up to 11 to 12 hours, so you'll get the most mileage out of a long-life battery like on those systems, and 4x the battery life with it than on a normal laptop with a 4, 6, or 8 cell battery. The Lenovo Thinkpad X250 is also a good choice with nearly the same battery life by just a few minutes difference. You can read the benchmarks for this and more about it here:
Longest Laptop Batteries and Benchmark