Tom charges a fee of $100 a day to search for an item for the first 5 days and then $60 per day for every day after that.  How much did it cost for him to look for an item for 10 days?
The first 5 days cost 5*100=$
<gadget id="calculator">5*100</gadget>
<output>500</output>
500.
He gets 10-5=
<gadget id="calculator">10-5</gadget>
<output>5</output>
5 days on discount.
He paid 5*60=$
<gadget id="calculator">5*60</gadget>
<output>300</output>
300 at the discounted rate.
So in total he pays 500+300=$
<gadget id="calculator">500+300</gadget>
<output>800</output>
800.

<result>800</result>