Factors that affect battery life of lithium batteries