Labor cost analysis and optimization