{
  "address": "cce876f268ffb90dbb9c4d5faec4503b",
  "category": "other",
  "question": "What is $100 from a period with a CPI of 258.811 worth in dollars of a period with a CPI of 314.175, using the BLS CPI method?",
  "answer": "$121.39",
  "askedBy": {
    "kind": "guest",
    "display": "method deck",
    "stamped": false,
    "id": null
  },
  "answeredBy": "method",
  "madeAt": "2026-09-30T22:39:30.722Z",
  "validUntil": null,
  "validityClass": "forever",
  "sources": [
    {
      "label": "How to Use the Consumer Price Index for Escalation",
      "url": "https://www.bls.gov/cpi/factsheets/escalation.htm"
    }
  ],
  "supersedes": null,
  "supersededBy": null,
  "isSeed": false,
  "seedSource": null,
  "seedAttribution": null,
  "duplicateOfQid": null,
  "publishedAt": null,
  "unpublishedAt": null,
  "voteCount": 0,
  "queuedForSubstrate": false,
  "answerMethod": "method",
  "unsourced": false,
  "source": {
    "kind": "url",
    "value": "https://www.bls.gov/cpi/factsheets/escalation.htm",
    "retrieved_utc": "2026-09-30T22:29:13Z"
  },
  "qsha256": "ccd6dac1db5b82319b5788c6ba0bd1eecadd3ffb0b4069c76128f203ad27bb56",
  "runOne": null,
  "cardContractVersion": "card_contract/1",
  "deck_id": "method-deck",
  "deck_title": "Method Deck",
  "method": {
    "name": "Inflation-adjusted value (CPI method)",
    "version": "1",
    "source_url_or_file": "methods/inflation-adjusted-value.cjs",
    "sha256_of_method_file": "00d8b6cf5367cf1564faa782e52029fe9d09bae2b0abad6140556eb23fb3ea3b"
  },
  "receipt": {
    "inSubstrate": false,
    "local": true,
    "modelCallsAtMint": 0,
    "tokensAtMint": 0
  },
  "method_deck": {
    "inputs": [
      {
        "name": "amount",
        "type": "number",
        "unit": "currency units",
        "required": true,
        "description": "Amount stated in the starting period's dollars",
        "min": 0
      },
      {
        "name": "cpi_start",
        "type": "number",
        "required": true,
        "description": "CPI index value for the starting period",
        "min": 0
      },
      {
        "name": "cpi_end",
        "type": "number",
        "required": true,
        "description": "CPI index value for the ending period",
        "min": 0
      }
    ],
    "outputs": [
      {
        "name": "adjusted_value",
        "unit": "currency units",
        "description": "Amount restated in the ending period's dollars"
      }
    ],
    "steps": [
      "adjusted_value = amount * (cpi_end / cpi_start).",
      "Round adjusted_value to 2 decimals (money to cents)."
    ],
    "constants": [],
    "examples": [
      {
        "name": "worked example",
        "inputs": {
          "amount": 100,
          "cpi_start": 258.811,
          "cpi_end": 314.175
        },
        "expected": {
          "answer": "$121.39"
        },
        "check": "hand computation: 100 * (314.175/258.811) = 100*1.213977... = 121.3977..., rounds to 121.39 (verified by the checker script, not by hand rounding of the truncated ratio)"
      },
      {
        "name": "test vector: deflating forward to backward period",
        "inputs": {
          "amount": 500,
          "cpi_start": 314.175,
          "cpi_end": 258.811
        },
        "expected": {
          "answer": "$411.89"
        },
        "check": "hand computation: 500 * (258.811/314.175), verified with the checker script against the same formula used by run()"
      }
    ],
    "disclaimer": null,
    "deck_category": "finance"
  },
  "status": "minted",
  "kind": "method",
  "provenanceClass": "own_question",
  "provenance": {
    "schema": "card_provenance/2.0.0",
    "chain": [
      {
        "source": {
          "kind": "url",
          "value": "https://www.bls.gov/cpi/factsheets/escalation.htm",
          "retrieved_utc": "2026-09-30T22:29:13Z"
        },
        "sha256": "024f5fbdc74de8557b44fd5762c63da19de37ff79c70b011b459f56d7564025e",
        "supersedes": null,
        "added_utc": "2026-09-30T22:39:30.722Z",
        "added_by": "method:Inflation-adjusted value (CPI method)",
        "why": "the method that computed this answer",
        "check": null,
        "status_label": "pending",
        "signature": null
      }
    ]
  }
}
