Ordering too little thread stops the line; ordering too much ties up money in cones nobody uses. The standard method is simple:
Formula: Thread per garment = Σ (Seam length × Thread ratio) × (1 + Wastage %)
Step 1 - list every seam and its stitch class
Measure each seam on the sample or from the pattern, and note the machine / stitch class. Include bartacks, buttonholes and button sewing.