Lithium battery formula conversion