Calculating Opportunity Cost Formula