calculation of material and labour requirement