Finished some of the interest calculation code.