What mixture said, plus having the battery in provides you with a UPS so if the mains flickers you don't suffer data loss.
I charge my chromebook (laptop) in the evening and switch the mains off when the charge light shows blue. Then during the day I remove the charger plug and use it unfettered by mains lead. Seven to eight hours available, I've never got near that yet.