Calculation for the rate.