Calculate battery life, charge time, capacity, and degradation for lithium-ion, LiFePO4, and other batteries.