Energy storage motor capacity calculation