Calculation method of total energy storage capacity of energy storage device