As noted, macOS has improved in battery management:
Use the battery status menu to resume charging if you need to have your Mac fully charged sooner.
support.apple.com
Mac notebook computers with Apple silicon use battery health management, a feature designed to improve the lifespan of your computer's battery.
support.apple.com
You could use
AlDente, especially if it’s weeks or months between mobility necessity. However, if you do use AlDente, set the limit to 60% — obviously, you’ll need to remember to release the limit and charge fully before relying solely on battery. Additionally, every one to three months, perform a calibration:
1. Plug in the MagSafe power adapter and fully charge the battery.
— Allow the battery to rest in the fully charged state for two hours or longer.
— You can use your computer during this time.
2. With the computer still on, disconnect the power adapter and continue to use your computer.
— When you see the Low Battery warning, save your work more frequently. Keep your computer turned on until it automatically goes to sleep.
3. After your computer goes to sleep, connect the power adapter and leave it connected until the battery is fully charged.
Instructions are derived from
iFixit.
Even if simply allowing the OS to manage charging, it’s still a good idea to perform a calibration every few months or so.