The Nernst equation is used to calculate the potential of an electrochemical cell under non-standard conditions.