Calculation of standard cell potential