{
  "schemaVersion": 1,
  "slug": "price-per-sqft-calculator",
  "category": "finance",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "f87e376997b363150ee9a73ab79d1b0ed4b484f2858946d05f74c1ddf1f5152b",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/price-per-sqft-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "u = P ÷ A; u₁₀₀ = u × 100",
    "vars": [
      [
        "P",
        "Total price"
      ],
      [
        "A",
        "Area (ft²)"
      ],
      [
        "u",
        "Price per square foot"
      ],
      [
        "u₁₀₀",
        "Price per 100 ft²"
      ]
    ],
    "note": "Returns 0 when the area is 0."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "return { pricePerSqft: area>0 ? price/area : null, pricePer100: area>0 ? price/area*100 : null };",
    "inputs": [
      {
        "name": "price",
        "type": "number",
        "default": 450000,
        "min": 0,
        "max": 10000000000,
        "step": 1000
      },
      {
        "name": "area",
        "type": "number",
        "default": 2000,
        "min": 0.01,
        "max": 10000000,
        "step": 10
      }
    ],
    "outputs": [
      {
        "name": "pricePerSqft",
        "precision": 2,
        "unit": "$"
      },
      {
        "name": "pricePer100",
        "precision": 2,
        "unit": "$"
      }
    ],
    "interpret": null
  }
}
