Calculation of specific capacitance of battery