Nernst equation and cell calculations