Co tohle - nestačilo by?
Keeping your battery charged to 100% will shorten its life. If you open Energy Management and click on the button beside Optimize for Battery Runtime, you can choose to Optimize for Battery Lifespan.
This will limit the charge to 80% and it will lengthen the lifetime of the battery.