Energy storage calculation of electrolyte