Rate calculator.