Before working with equal total payments loans, you should beforehand these four concepts:
 The amount of the amortization payments( a_{s} ), which are equal in all period, except on the last one. This variable shows us the amount that we have to pay in each period.
 The amount of the interest payments ( I_{s} ), which depend on the outstanding balance or outstanding principal ( C_{s} ) and the rate of interest of each year ( i_{s} ). This variable shows us the part of the amortization payment ( a_{s} ) which is used to pay the accrued interest.
 The amount of principal or capital repayment ( A_{s} ), which is obtained on subtracting the interest payment ( I_{s} ) from the amortization payment ( a_{s} ). This variable shows us the part of the amortization payment ( a_{s} ) which is used to repay the debt.
 The amount of the outstanding balance or outstanding principal ( C_{s} ), which depend on the principal repayment ( A_{s} ), because it is obtained on substracting the principal repayment of this period ( A_{s} ) from the outstanding balance of the previous period. This variable shows us the indebtedness at any time.
You have to know that the index rate ( ir_{s} ) of each year has to be adjusted by the margin or spread ( d ), with the exception of the first year interest rate, which is not subject to this type of adjustment. The adjustment is calculated on the basis of the following formula:
With the above formula you can obtain the nominal rate of interest of this period ( j(m) ) and you need the Effective rate of interest per time unit ( i^{(m)} ), this is why you have to do the following conversion:
Once calculated the rate of interest applied to each period, you have to calculate the different variables explained above:
 First of all, you have to calculate the interest payment ( I_{s} ) from the outstanding balance or outstanding principal of the previous period ( C_{s1} ) and the effective rate of interest per time unit ( i_{s}^{(m)} ) of this period, using the following formula:
 Once the interest payment ( I_{s} ) is calculated, you have to calculate the principal or capital repayment ( A_{s} ) as difference between the amortization payment ( a_{s} ) and the interest payment ( I_{s} ):
 Lastly, you have to calculate the outstanding balance or outstanding principal ( C_{s} ) as difference between the outstanding balance or outstanding principal of the previous period ( C_{s1} ) and the principal or capital repayment of this period ( A_{s} ):
The last amortization payment ( a_{n} ) has to be calculated, because is different from the rest of the amortization payments, this is because the last one is a adjustment payment. You can calculate this one from the outstanding balance or outstanding principal of the previous period ( C_{s1} ) by multiplying it by the effective rate of interest per time unit ( i_{s}^{(m)} ):
But, how do you know what is the last amortization payment?
 Because you have reached the maximum years, so you have to pay the same of the rest periods, plus the outstanding debt. Or as explained before, you have to calculate it from the outstanding balance or outstanding principal of the previous period ( C_{s1} ).
 Because you have paid back the debt before the maximum years. It is recognizable when the outstanding balance or outstanding principal ( C_{s} ) is negative, then you have to calculate it from the outstanding balance or outstanding principal of the previous period ( C_{s1} ).

