Rate calculator.

#160