Productivity calculation