Effects of variability and rate on battery charge storage and lifespan