Calculating the effective rate