How to calculate battery output current and voltage