Relationship between total earnings and number of hours