Takumi earns $8.50 per hour proofreading advertisements at a local newspaper. He works no more than 5 hours a day. Write a function for his earnings.