Correctly calculate difference potential