A General Input Distance Function Based on Opportunity Costs A General Input Distance Function Based on Opportunity Costs