Calculate and compare fractions