Compound interest and loans