Lithium-ion battery discharge power calculation