Calculating the cost of paper