calculating potential difference worked example