How to calculate the current when the battery is working