How to disable charging with a MagSafe connector plugged in
apple.stackexchange.com
apple.stackexchange.com
And you're not even sure that you're going to make it last much longer by storing it at 40% or draining it once a month (or whatever is the myth du jour).