Capacity calculation of a single group of energy storage batteries