Hello! I firstly needed to compute how many months will it take me to repay my loan. And after the getting value of 158 months I need help producing a plot that will show amount owed each month.
My loan is 1,000 euro. Annual interest rate of 11%, compounded
monthly. And the monthly repayments are 12 euro
Hi @sonjiiic,
Welcome to the RStudio Community Forum.
You need to set-up a vector to contain the balance at each month, and then save to that vector for each step inside the while loop. Then you can use the vector to plot the loan progress: