Current calculation of batteries in series