calculate chempots for each battery