Battery Charging Calculation For Substation