How to calculate the discharge of energy storage charging pile