Suppose that one chooses to use a tool to produce something worth $10. Suppose that the next most valuable thing the tool could have been used to produce would be worth $7. The opportunity cost of the choice is $7.

This ignores cost of operating the tool, wear on the tool and assumes equal time requirement to produce the alternatibe things.