Username or EmailPassword
Well, it does not matter how clever the software is. Charging the battery costs energy, always. If you use it, when traveling for instance, you need it. But if your laptop is always plugged, just remove it. The ratio of energy consumed vs energy stored is insanely low. And you store it for nothing, it will dissipate in heat, and not so slowly.
But that's the thing, "smart" software can be set in such scenario to essentially not use the battery
Yes, when kept in warmer environment of a laptop it will dissipate slightly faster; overall being recharged more; but nothing too dramatic. Especially versus the perks of built-in UPS (and I write it especially from the point of view of "average user" who seems to have a hard time protecting (saving data, for example) against sudden power loss, and we are supposed to "get their data back" after the fact...)