{
  "address": "25a0677527959f9229c4a953b6dd860f",
  "category": "other",
  "question": "What is 12% of 250?",
  "answer": "30.00",
  "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": "Percentage and percent-change formulas",
      "url": null
    }
  ],
  "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": "edition_page",
    "value": "Standard arithmetic reference (percentage and percent-change definitions).",
    "retrieved_utc": "2026-09-30T19:56:00Z"
  },
  "qsha256": "751f5c1a639d77f01dfc4b98e9d240ed61a619bbe5885abf73ec1d62dd9c1448",
  "runOne": null,
  "cardContractVersion": "card_contract/1",
  "deck_id": "method-deck",
  "deck_title": "Method Deck",
  "method": {
    "name": "Percent of a value, or percent change between two values",
    "version": "1",
    "source_url_or_file": "methods/percent-of-and-percent-change.cjs",
    "sha256_of_method_file": "cdd68c6bab5d357084db94aeca48dc604a92beaf13df6d84c5476a98dbb3ef38"
  },
  "receipt": {
    "inSubstrate": false,
    "local": true,
    "modelCallsAtMint": 0,
    "tokensAtMint": 0
  },
  "method_deck": {
    "inputs": [
      {
        "name": "operation",
        "type": "string",
        "required": true,
        "description": "Which calculation to perform.",
        "enum": [
          "percent_of",
          "percent_change"
        ]
      },
      {
        "name": "base",
        "type": "number",
        "required": true,
        "description": "For percent_of: the value to take a percentage of. For percent_change: the old (starting) value."
      },
      {
        "name": "percent",
        "type": "number",
        "unit": "%",
        "required": false,
        "description": "Required for percent_of: the percentage to apply to base."
      },
      {
        "name": "new_value",
        "type": "number",
        "required": false,
        "description": "Required for percent_change: the new (ending) value."
      }
    ],
    "outputs": [
      {
        "name": "result",
        "description": "For percent_of: the computed amount. For percent_change: the percent change (positive is an increase, negative a decrease)."
      }
    ],
    "steps": [
      "If operation is percent_of: result = base * percent / 100.",
      "If operation is percent_change: result = ((new_value - base) / base) * 100, expressed in percent.",
      "Round to 2 decimals."
    ],
    "constants": [],
    "examples": [
      {
        "name": "worked example",
        "inputs": {
          "operation": "percent_of",
          "base": 250,
          "percent": 12
        },
        "expected": {
          "answer": "30.00"
        },
        "check": "By decomposition: 10% of 250 is 25, 2% of 250 is 5, sum is 30, matching 250*12/100=30."
      },
      {
        "name": "test vector: percent change",
        "inputs": {
          "operation": "percent_change",
          "base": 80,
          "new_value": 100
        },
        "expected": {
          "answer": "25.00%"
        },
        "check": "By hand: 100 is 20 more than 80; 20/80=0.25=25%, matching ((100-80)/80)*100=25.00."
      }
    ],
    "disclaimer": null,
    "deck_category": "other"
  },
  "status": "minted",
  "kind": "method",
  "provenanceClass": "own_question",
  "provenance": {
    "schema": "card_provenance/2.0.0",
    "chain": [
      {
        "source": {
          "kind": "edition_page",
          "value": "Standard arithmetic reference (percentage and percent-change definitions).",
          "retrieved_utc": "2026-09-30T19:56:00Z"
        },
        "sha256": "726274aea63db273a4ecbdca01087646fb4e9a5bfb4549a34696e212bf7d3ca0",
        "supersedes": null,
        "added_utc": "2026-09-30T22:39:30.722Z",
        "added_by": "method:Percent of a value, or percent change between two values",
        "why": "the method that computed this answer",
        "check": null,
        "status_label": "pending",
        "signature": null
      }
    ]
  }
}
