How to calculate the power formula of the battery