how are costs calculated for a quarry