Add up what graduating late costs: extra tuition, the paychecks you delay and interest on the extra borrowing.
Model and assumptions. Extra college cost is the annual cost times the extra years. Delayed earnings are the salary you would have earned in those years, starting at the entered salary and rising by the growth rate each year. The share you borrow is repaid at a fixed rate over ten years, and the interest is the payments less the amount borrowed. The total adds the extra cost, the delayed earnings and the interest. It treats the lost years as the first working years and ignores taxes, the later raise a delayed start pushes back, and what the delayed earnings would have been invested in.