Opportunity Cost = What One Sacrifice / What One Gain, Opportunity Cost = Total Revenue – Economic Profit. These are the formulas for opportunity cost. You can read about the Indian Economy Notes For UPSC Preparation in the given link.
Further readings: