Container energy storage cabinet capacity calculation