Calculating the cost of carpeting