John worked 8 hours a day every day from the 3rd to the 8th, including the 3rd and not including the 8th.  How many hours did he work?
He worked for 8-3=
<gadget id="calculator">8-3</gadget>
<output>5</output>
5 days.
So he worked for 5*8=
<gadget id="calculator">5*8</gadget>
<output>40</output>
40 hours.

<result>40</result>