To calculate opportunity cost, consider the potential benefits of the next best alternative that you forego. For instance, if an entrepreneur decides to invest $10,000 in developing a new product instead of investing that money in the stock market, the opportunity cost is the potential returns from the stock market. The formula can be simplified as: Opportunity Cost = Return of the best foregone option - Return of the chosen option