Loan balance after the ith payment | ||
---|---|---|

principal or initial loan balance | ||

Interest rate | ||

Loan term | ||

Loan product, important parameter which fully specifies a loan | ||

Number of loan payments | ||

Time between loan payments | ||

Helpful collection of variables | ||

Fraction of loan term | ||

Repayment rate (dollars per time) | ||

Fraction of payment to interest during the ith payment | ||

Fraction of initial payment to interest | ||

Total payment to interest | ||

Sum of all payments | ||

Overpay ratio |

Photo credit to Josh Appel

In the article on continuous solutions to the loan equation, we found that the entire loan could be specified by the loan product, \(rt_\text{term}\), or the initial fraction of payment to interest, \(\phi_0\). In practice, loan payments and interest are not continuous payment rates. If they were, a borrower's bank balance would continuously drop by a few fractions of a cent per second and their balance would change in real-time while they viewed it. Instead, banks charge interest and collect payments at discrete intervals, usually monthly.

In this article, we will show that the mathematical model used in practice to determine a loan balance is the finite difference method for first order ODEs. We will show that both the loan product and number of payment periods during the loan term, \(n\), are necessary to compute all the relevant parameters of the loan. We will find formulas for the principal fraction \(\frac{B_i}{B_0}\), payment to interest \(\phi_i\), and overpay ratio \(\frac{V}{B_0}\) as a function of \(f(rt_\text{term},n)\); the repayment rate \(P\) as a function of \(f(r,t_\text{term},n)\).

Set up the first order differential equation describing a loan using the variable definitions above just as we did in the continuous case here.

Rate of change of loan balance | \( = \) | Interest | \( - \) | Repayment rate |
---|---|---|---|---|

| \( = \) | | \( - \) |

When a bank computes the balance on a loan, they use a recursive function based on the finite difference approximation of this first order ordinary differential equation. This equation can be discretized by approximating \(\partial B = B_{i+1} - B_i\) and \(\partial t = \Delta t\).

This is the formula commonly programmed into spreadsheet programs to compute loan balances as a function of time:

Notice that \(r\Delta t\) is unitless. For example, in this case where \(\Delta t =\) 1 month the conversion appears as follows.

Let us expand this recursive function into an explicit one and simplify by defining \(R = 1+r\Delta t \)\(= 1+ \frac{rt_\text{term}}{n}\) for convenience:

Simplify:

Now we easily see the pattern for a closed-form expression of \(B_i\). Recognize \(\Delta t\) and \(P\) are independent of \(i\) and factor them out of the sum.

From this follows an expression for the payment as a function of the loan term, rate and payment/maturation frequency (set \(B_n = 0\)). The number of payment cycles is a function of the term of the loan \(n=t_\text{term}/\Delta t\).

From here we can derive an equation for \(\frac{B_i}{B_0}\) that is solely a function of the total number of payment periods, \(n\), and the loan product, \(rt_\text{term}\).

The overpay ratio follows easily. \(V\) is the total amount repaid and \(V= Pt_\text{term}\). The ratio between what is repaid and what is borrowed is \(\frac{V}{B_0}\). This can be viewed as a function of \((r, \, t_\text{term}, \, \Delta t)\) or as a function of \((rt_\text{term}, \, n)\).

We can also derive an expression for the fraction of each payment put to interest as a function of \(i\), \(rt_\text{term}\), and \(n\).

When we plot \(\phi_i\) vs \(\tau\) with increasing \(n\), we eventually approximate the continuous solution (recall that \(\tau=i/n\)). The continuous solution becomes recognizable by \(n= \) 20 and becomes visually indistinguishable around \(n= \) 200. A future article will discuss the error between the continuous and discrete solutions when solving for the overpay ratio or the repayment rate.

Follow @domesticengine7