Ratio calculation.