Electrochemical cell calculations