Math +engineering major?

Spend less.

Really, if $400,000 is the minimum yearly income you need to live, your career choices will be very limited, and highly competitive. On the other hand, someone who can live on $40,000 per year will have far more career choices that will provide enough income to live on.