How to calculate the capacity of a battery charging cabinet