How to calculate the grounding current of the battery