Calculation of Potential Difference