What's the math formula that is used to calculate the monthly payment in this mortgage calculator?
I would like to know this math formula so that I can plug in the following values
Mortgage Amount: $100,000
Rate Type: Fixed
Interest Rate: 6%
Interest Term: 5 Years
Payment Frequency: Monthly
Amortization Rate: 5%
and calculate the monthly payment to $1,929.86 (as shown in the mortgage calculator).
The amortization table you cited states that “interest is compounded semi-annually for fixed interest rates.” (Note: This fact is not derived from finance theory; this is the bank's policy.) Therefore, the effective monthly interest factor is computed as $R\equiv 1.03^{1/6}$, since $3$% is the semi-annual interest rate and there are six months in an interest period.
The goal is to determine the fixed amount that needs to be paid each month in order to pay off the debt in 5 years, i.e., 60 months. Let $p$ denote this unknown number and $v_0$ the initial principal. The total debt by the end of the first month is: $$v_1=R v_0-p,$$ because the principal yields interest but $p$ is paid off. Similarly, $$v_2=Rv_1-p=R(Rv_0-p)-p=R^2 v_0-Rp-p.$$ By induction, it is not difficult to see that $$v_T=R^T v_0-p\sum_{t=0}^{T-1}R^t=R^T v_0-p\frac{R^T-1}{R-1}$$ after $T$ months.
Now, if the debt is to be paid off in $T$ months, then $v_{T}=0$, so that solving for $p$ yields: \begin{align*} 0=R^T v_0-p\frac{R^T-1}{R-1}, \end{align*} or, after rearrangement: $$\boxed{p=\dfrac{R^T(R-1)}{R^T-1}v_0}$$ If you plug in $T=60$, $v_0=100\mathord, 000$, and $R=1.03^{1/6}$, then you get a monthly payment of $\$1\mathord,929\mathord .86$.