What the calculation does
The standard amortisation formula splits each level monthly payment between interest and principal. Early payments usually contain more interest; later payments usually repay more principal. A zero-rate case divides principal evenly across the term.
Upfront costs and recurring monthly costs stay separate from principal and interest so the assumptions remain visible.