Sub topic 5
Building the Mandatory Repayment Schedule
This chapter assumes you can use a basic spreadsheet or Python, understand compound interest, read the three financial statements, and distinguish principal from interest. A mandatory repayment schedule models the principal that the borrower must repay under the debt agreement. It excludes optional repayments, such as a cash sweep.
Start with the debt terms
Record the contractual inputs before building formulas:
- Opening principal balance
- Draw date and maturity date
- Repayment frequency
- Mandatory repayment amount or percentage
- Final balloon repayment, if any
- Whether repayments occur at the beginning or end of each period
A debt schedule should not decide how much debt the company wants to repay. It should first show what the contract requires.
Build the roll-forward
Each period follows the same relationship:
Closing balance = Opening balance - Mandatory repayment
The next period's opening balance equals the previous period's closing balance. The mandatory repayment cannot exceed the opening balance.
| Repayment method | Periodic mandatory repayment | Balance pattern |
|---|---|---|
| Bullet | 0 before maturity, then all remaining principal | Balance stays constant, then falls to zero |
| Equal principal | Original principal divided by repayment periods | Balance falls by the same amount each period |
| Percentage of original principal | Contractual percentage multiplied by original principal | Fixed repayment, often followed by a balloon |
| Percentage of opening balance | Contractual percentage multiplied by opening balance | Repayments decline over time |
For example, a $1,000 loan with five equal principal repayments requires $200 each year. A loan requiring 15% of original principal each year repays $150 annually. If it has a five-year maturity, the remaining $250 is a balloon repayment at maturity.
Separate mandatory and optional repayments
Keep these rows separate:
- Opening balance
- Mandatory repayment
- Optional repayment or cash sweep
- Closing balance
The mandatory repayment is driven by the loan agreement. The optional repayment is driven by available cash and the model's sweep rules. Combining them makes it difficult to test whether the company meets its contractual obligations.
A repayment also needs a timing convention. If the repayment occurs at the end of the period, interest may be calculated on the opening balance for a simple annual model. If it occurs at the beginning, the balance used for interest should reflect the repayment earlier.
Implement the schedule in Python
The following function models a fixed percentage of the original principal and adds any remaining balance at maturity. It treats repayments as period-end movements.
def mandatory_schedule(principal, repayment_pct, periods):
"""
repayment_pct is the percentage of original principal repaid each period.
The final period includes any remaining balloon balance.
"""
original = principal
balance = principal
rows = []
for period in range(1, periods + 1):
contractual = original * repayment_pct
repayment = min(balance, contractual)
if period == periods:
repayment = balance
closing = balance - repayment
rows.append((period, balance, repayment, closing))
balance = closing
return rows
for row in mandatory_schedule(1000, 0.15, 5):
print(row)The first four periods repay $150 each. The fifth period repays the remaining $400, so the balance reaches zero. In a spreadsheet, use MIN(opening balance, contractual repayment) and apply the balloon rule in the maturity column.
Trace the schedule
The schedule feeds later calculations:
Exercise
A $900 loan requires 10% of original principal each year and matures after four years. What is the mandatory repayment in years one through three, and what is the maturity balloon?
Show answer
Each of the first three repayments is $90. The balance before maturity is $630, so the maturity repayment is $630 if the loan must be fully repaid.