Cost of education calculation