Volume from geometry
The heavy lifting is arithmetic, not agronomy: length times width gives square feet, depth in inches divided by 12 gives feet, and the product is cubic feet. Dividing by 27 converts to cubic yards, the unit bulk suppliers quote. Bag counts divide that volume by the bag size and round up, so a partial bag always becomes a full one.