Actual battery life calculation of energy storage charging pile