Created new function for degrees difference