The lender may prefer a comparison across the full 15 years, but I would hesitate to use that as the only horizon. Base the main calculation on how long you might actually retain this particular mortgage, then run an earlier-sale scenario as well.
For each period, add interest, arrangement...