A correct formula still gives a wrong quantity when the dimensions are wrong. A 2 ft length error adds 5% to a slab pour, and an 8 in thickness error adds 33%.
You can estimate repointing mortar with a simple formula, but real walls use up to double. A 500 sq ft wall works out to 8 bags on paper and 14 in practice.