Energy storage power and energy storage capacity calculation