Energy Storage Battery Capacity Calculation