Looking back on my experience with my last MacBook Air M2, when I simply let the battery health management software decide, I got disappointing results: the software had a pretty poor learning curve and didn't keep the charge at 80% nearly as often as it needed to.
As a result, this computer, in just under 2 years of operation, has already experienced battery wear of more than 10%, which is quite a lot. I control the charging of my current macBook manually and have more than impressive results: after 7 months of use, the battery health level is 100%.
I gained experience in controlling battery charge ranging from 30% to 80% on my iPhones, which I successfully sold in trade-in programs after 2-3 years of operation with battery health of more than 93-94% and always received the maximum possible amount of compensation .
In order to remove my laptop from charging in time, in a couple of days I wrote the BatWiser program for my needs, which I kindly posted in the public domain. Good luck!