A loan is borrowed money that you agree to repay over time plus an extra fee called interest. Payments are made at a certain interval, called the period, until the full balance is paid off at the end of the term.
Here's an example of a very simple loan structure:
Alice lends Bob $1000, which Bob is to repay over five years, so Bob will have to pay $200 per year. Bob will also pay additional interest of $50 per year. The following table shows the payments Bob makes each year, and the amount he still owes Alice, which we call the outstanding balance.
Notice that Alice has made a profit of $250 over the course of the loan.
But how do we decide how much interest is paid?
The interest will be bigger for a bigger loan. The amount you pay should be related to the outstanding balance. As you pay off the loan, the amount of the lender's money you have is decreasing.
One logical solution would be for the interest to be calculated as a percentage of the outstanding balance. That would mean the interest payments get smaller with each period.