Calculating Cost of Materials