Interest rate calculator is not working

Hi all, can anyone help me why my interest rate calculator is not working?

print()
print()
print(“Loan calculator”)
print()

interest_rate = int(input("What is the interest rate: "))
loan = int(input("what is your starting capital: "))

for year in range (10):
loan+=(loan*interest_rate)
print(“Year”, year+1, “is”, round(loan,2))

1 Like

What is it not working apart from the fact you are using the wrong formula?

If you loan x, after year one it is x (1+interest). Year two is x (1+interest)^2, and so on.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.