Battery peak current calculation method