To improve the lifespan of your battery, Optimized Battery Charging allows your Mac to learn from your daily charging routine so that it can delay completing a full charge in certain situations. And with Charge Limit, you can limit what your Mac considers a full charge.
support.apple.com