Discharge time calculation of energy storage charging pile