In the old days, measuring the amount/quantity of wood needed to make doors and windows, they would buy wood from the market and allow the carpenter