Comparison of ratios and determining the larger ratio