Production Theory of Cost and Revenue