Cost analysis and production