Lithium battery peak current calculation