A Formulation of the Earnings Function Using the Concept of Occupational Investment