how to calculate battery capacity for electric vehicle