You're forgetting about opportunity cost and the salary plus job advancement that you could achieve in the time you are in college
You have to assume totally unrealistic investment gains in the first four years to make up for the $500k less total income.