A mortgage is taken out of 100000 dollars and is repaid by annual instalments of 20000 dollars. Interest is charged on the outstanding debt at 10 percent annually. If the first repayment is made one year after the mortgage is taken out, find the number of years it takes for the mortgage to be paid.

there are many good amortization calculators online.