Rate of interest calculation