battery capacity analysis