Lithium battery charging curve power calculation