Add a statement generation function to Formatting.fs that produces a month-by-month account statement from an AmortisationSchedule.
Each statement line should include:
- Statement date
- Opening balance
- Payment received (split into principal and interest components)
- Fees charged (if any)
- Interest charged
- Closing balance
- Running total of interest paid to date
Output formats to support:
- A structured F# record type (
StatementLine) for programmatic use.
- A plain-text tabular rendering suitable for inclusion in a letter or email.
- Optionally, a CSV export.
This is a prerequisite for any regulatory disclosure that requires a projected payment schedule (e.g. SECCI pre-contractual information, CCA s.77A statement of account).
Add a statement generation function to
Formatting.fsthat produces a month-by-month account statement from anAmortisationSchedule.Each statement line should include:
Output formats to support:
StatementLine) for programmatic use.This is a prerequisite for any regulatory disclosure that requires a projected payment schedule (e.g. SECCI pre-contractual information, CCA s.77A statement of account).