So to learn to my future macbook pro, so I need keep it at 40%-60% ? and any of those apps do that?
Why if Apple know that why don't do something about it? you know keep it at those numbers or alert the user to unplugged the battery for some hours (maybe works?).
In past there were not so much researches and not so much those beneficial apps. Hence nobody knew how to use a battery correctly, I did not know as well. Hence I used my previous early 2015 device extremely wrong in the first 2 years.
So, Apple actually knows all the things and they recently integrated a software into the MacOS, called something like optimised battery etc. When you activate it, it stops charging the battery at 80%. But it needs some time to learn your usage type, daily usage durations etc. Hence I do not like that so much, I control it myself.
Recently I use AlDente, it has both paid and free versions. When you just want to have a charging limit, go with the free version, and also "Chargelimiter" does the same for free as well. When you would like to have further details and features, paid version of the AlDente is needed.
So to say, to answer your question, yes. You need to keep the battery around 40%-60%. The best point is 50%.
However in this case there exists a balance in between the advantages and the disadvantages.
When you keep your battery at 50%, it will not be ready to be used for long hours without charging. It means that when you unplug it, you will have the ability to use it maybe a few hours or less. But, when you charge it until 80%, and then unplug it, you will be able to use longer hours.
You need to prioritize your needs.
If you usually do not need battery usage, keep your battery at 50%.
If you sometimes need to use the device with the battery, keep it maybe at 70% or 80%.
In either case, you are free to charge it to the 100% as well, if you need to use the device on battery for longer and longer hours. All these can be set by using one of the aforementioned applications.
I now use my device mostly at home, either as homeoffice or for university education. You know during the corona everything is terrible, we are usually at home. Hence I do not use mine as a "real" laptop. So I just keep it at 50% by limiting it at this rate, plugged in always the charger, battery is not being used and the MBP is powered with the charger only. Sometimes when I need to go to the kitchen for example, I will charge it up to 75%, then will use it until 30%. That is all. There is no harm to keep it at 50%. But do not forget to use the battery at least 1-2 times per week, so that it can stay alive for sure.