{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/calculator/money-math-calculator/schema.json",
  "title": "Money Math Calculator inputs",
  "description": "Add, subtract, multiply, or divide monetary amounts using exact cent arithmetic where applicable.",
  "type": "object",
  "properties": {
    "operation": {
      "title": "Operation",
      "type": "string",
      "default": "add",
      "enum": [
        "add",
        "subtract",
        "multiply",
        "divide"
      ],
      "x-optionLabels": {
        "add": "Add amounts",
        "subtract": "Subtract second amount",
        "multiply": "Multiply first amount by factor",
        "divide": "Divide first amount by divisor"
      }
    },
    "amountA": {
      "title": "First amount",
      "type": "number",
      "default": 125.75,
      "x-step": 0.01,
      "x-unit": "currency"
    },
    "amountB": {
      "title": "Second amount",
      "type": "number",
      "default": 48.35,
      "x-step": 0.01,
      "x-unit": "currency"
    },
    "factor": {
      "title": "Factor or divisor",
      "type": "number",
      "default": 3,
      "minimum": 1e-9,
      "x-step": 0.001
    }
  },
  "required": [
    "operation",
    "amountA",
    "amountB",
    "factor"
  ],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "1.0.0",
    "calculatorUrl": "https://askcalculators.com/calculator/money-math-calculator/",
    "queryExample": "https://askcalculators.com/calculator/money-math-calculator/?operation=add&amountA=125.75&amountB=48.35&factor=3",
    "migrationStatus": "new",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "formula": {
      "expression": "addition and subtraction operate on integer cents; multiplication and division are rounded to the nearest cent"
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/money-math-calculator.json",
      "qualifiedReview": "pending",
      "qualifiedReviewer": null,
      "qualifiedReviewDate": null,
      "formulaVersion": "1.0.0",
      "referenceCoverage": "references-pending",
      "releaseTestScope": "Catalog and regression checks are not a professional formula audit; consult release evidence.",
      "historicalMetadataDate": "2026-09-01",
      "historicalMetadataNotice": "The imported date is not evidence of a completed human review."
    },
    "outputs": {
      "result": {
        "title": "Money result",
        "type": "number",
        "x-format": "currency",
        "x-primary": true
      },
      "unroundedResult": {
        "title": "Unrounded result",
        "type": "number",
        "x-format": "number",
        "x-digits": 10
      },
      "roundingDifference": {
        "title": "Cent-rounding difference",
        "type": "number",
        "x-format": "currency",
        "x-digits": 6
      },
      "equation": {
        "title": "Equation",
        "type": "string",
        "x-format": "text"
      }
    }
  }
}
