Calculation of lithium battery output peak current