Finding the difference between terms