what is opportunity cost and how it is useful in investing