Relationship between number of hours worked and total earnings