Calculation formula for total current of batteries in series