Batteries based on li-ion chemistry last longer if you avoid fully charging/discharging them. Also you should minimize time when battery sits fully charged. I recommend maintaining your battery accordingly, for example charging it to 90% just before the ride and topping up when possible instead...