How to calculate the battery cost of electric vehicles