Question: how to do opportunity cost?
Answer: Opportunity cost is the value of the next best alternative or option. This value may or may not be measured in money. Value can also be measured by other means like time or satisfaction. One formula to calculate opportunity costs could be the ratio of what you are sacrificing to what you are gaining.