Lead-acid battery output current calculation