Hello! I am new to R . Using a while loop I would need to answer this question. My loan is 1,000 euro, and has annual interest rate of 11%, compounded monthly. So, debt of d is d(1 + 0.11/12) after a month. My monthly repayments are 12 euro. How long does it take to clear the debt (shown in months)? Here is what I have so far. Also, how could I plot the amount I owned each month?