estimating total cost