Annual wage = W0 × (1.08)^S. A 40-year career starts after S years of schooling; earnings are discounted by (1 + r)^t and costs are paid up front as cost × S.
Annual wage vs. years of schooling, W0 × (1.08)^S