Constructing an opportunity cost curve