How to Calculate Opportunity Cost?

Calculating opportunity cost is not as simple as a math equation as some of the loss opportunities only have a social value, for example: You go away to college instead of going on a two-year soul searching trek across Europe. How can you really quantify the benefit, or loss, of one or the other?