{
 "schema": 1,
 "title": "Craft Quantities formula library",
 "description": "The equations behind the site's quantity calculators — volume, coverage, spacing, bulking, stairs, pitch — each pinned to registry test vectors.",
 "url": "https://craftquantities.com/formulas/",
 "publisher": "Craft Quantities",
 "license": "https://creativecommons.org/licenses/by/4.0/",
 "licenseName": "CC BY 4.0",
 "families": [
  {
   "id": "volume-from-geometry",
   "title": "Volume from geometry",
   "url": "https://craftquantities.com/formulas/volume-from-geometry/",
   "json": "https://craftquantities.com/formulas/volume-from-geometry.json",
   "formulas": [
    {
     "id": "rectangular-prism-volume",
     "equation": "V = L × W × D",
     "testVectors": 6
    },
    {
     "id": "cylinder-volume",
     "equation": "V = π × (d / 2)² × h",
     "testVectors": 2
    }
   ]
  },
  {
   "id": "area-of-plane-shapes",
   "title": "Area of plane shapes",
   "url": "https://craftquantities.com/formulas/area-of-plane-shapes/",
   "json": "https://craftquantities.com/formulas/area-of-plane-shapes.json",
   "formulas": [
    {
     "id": "rectangle-area",
     "equation": "A = L × W",
     "testVectors": 1
    },
    {
     "id": "circle-area",
     "equation": "A = (π × d²) / 4",
     "testVectors": 1
    },
    {
     "id": "triangle-area",
     "equation": "A = (b × h) / 2",
     "testVectors": 1
    }
   ]
  },
  {
   "id": "coverage-and-spread-rate",
   "title": "Coverage, spread rate and waste",
   "url": "https://craftquantities.com/formulas/coverage-and-spread-rate/",
   "json": "https://craftquantities.com/formulas/coverage-and-spread-rate.json",
   "formulas": [
    {
     "id": "spread-rate-quantity",
     "equation": "Q = (A × n) / s",
     "testVectors": 5
    },
    {
     "id": "pieces-per-area",
     "equation": "N = A × k",
     "testVectors": 4
    },
    {
     "id": "quantity-with-waste",
     "equation": "Q = Q₀ × (1 + w / 100)",
     "testVectors": 8
    }
   ]
  },
  {
   "id": "spacing-and-count",
   "title": "Spacing and count",
   "url": "https://craftquantities.com/formulas/spacing-and-count/",
   "json": "https://craftquantities.com/formulas/spacing-and-count.json",
   "formulas": [
    {
     "id": "count-on-centres",
     "equation": "n = ⌈L / s⌉ + 1",
     "testVectors": 3
    },
    {
     "id": "count-under-a-maximum-gap",
     "equation": "n = ⌈(L − g_max) / (w + g_max)⌉",
     "testVectors": 3
    },
    {
     "id": "equal-gap-between-items",
     "equation": "g = (L − n × w) / (n + 1)",
     "testVectors": 6
    }
   ]
  },
  {
   "id": "bulking-and-compaction",
   "title": "Bulking, compaction and weight",
   "url": "https://craftquantities.com/formulas/bulking-and-compaction/",
   "json": "https://craftquantities.com/formulas/bulking-and-compaction.json",
   "formulas": [
    {
     "id": "loose-volume-from-swell",
     "equation": "V_L = V_B × (1 + s / 100)",
     "testVectors": 2
    },
    {
     "id": "compacted-volume-from-shrinkage",
     "equation": "V_C = V_B × (1 + c / 100)",
     "testVectors": 2
    },
    {
     "id": "bulked-volume-from-factor",
     "equation": "V_L = F × V_B",
     "testVectors": 2
    },
    {
     "id": "mass-from-volume-and-density",
     "equation": "m = V × ρ",
     "testVectors": 4
    }
   ]
  },
  {
   "id": "stairs",
   "title": "Stair geometry",
   "url": "https://craftquantities.com/formulas/stairs/",
   "json": "https://craftquantities.com/formulas/stairs.json",
   "formulas": [
    {
     "id": "riser-count",
     "equation": "n = max(1, round(H / rₜ))",
     "testVectors": 4
    },
    {
     "id": "riser-height",
     "equation": "R = H / n",
     "testVectors": 4
    },
    {
     "id": "comfort-going",
     "equation": "G = c − 2 × R",
     "testVectors": 4
    }
   ]
  },
  {
   "id": "roof-pitch-and-slope",
   "title": "Roof pitch, slope and diagonals",
   "url": "https://craftquantities.com/formulas/roof-pitch-and-slope/",
   "json": "https://craftquantities.com/formulas/roof-pitch-and-slope.json",
   "formulas": [
    {
     "id": "pitch-to-angle",
     "equation": "θ = arctan(x / 12)",
     "testVectors": 4
    },
    {
     "id": "grade-percent",
     "equation": "p = 100 × (Δh / L)",
     "testVectors": 2
    },
    {
     "id": "slope-angle",
     "equation": "θ = arctan(Δh / L)",
     "testVectors": 2
    },
    {
     "id": "common-rafter-length",
     "equation": "Lᵣ = (B / 2 + o) × √(1 + (x / 12)²)",
     "testVectors": 2
    },
    {
     "id": "diagonal-of-a-rectangle",
     "equation": "d = √(a² + b²)",
     "testVectors": 3
    }
   ]
  },
  {
   "id": "unit-conversions",
   "title": "Unit conversions",
   "url": "https://craftquantities.com/formulas/unit-conversions/",
   "json": "https://craftquantities.com/formulas/unit-conversions.json",
   "formulas": [
    {
     "id": "feet-to-metres",
     "equation": "y = 0.3048 × x",
     "testVectors": 2
    },
    {
     "id": "feet-to-inches",
     "equation": "y = 12 × x",
     "testVectors": 4
    },
    {
     "id": "cubic-yards-to-cubic-metres",
     "equation": "y = 0.764554857984 × x",
     "testVectors": 2
    },
    {
     "id": "pounds-to-kilograms",
     "equation": "y = 0.45359237 × x",
     "testVectors": 2
    },
    {
     "id": "fahrenheit-to-celsius",
     "equation": "T_C = (T_F − 32) × (5 / 9)",
     "testVectors": 2
    }
   ]
  }
 ]
}
