Factors influencing battery longevity