{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://klarfort.com/tools/compound-interest-calculator/schema.json",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "currency": {
      "type": "string",
      "title": "Currency",
      "description": "Currency",
      "enum": [
        "USD",
        "EUR",
        "GBP",
        "JPY",
        "CHF",
        "CAD",
        "AUD",
        "CNY",
        "INR",
        "MXN",
        "BRL",
        "SGD",
        "HKD",
        "SEK",
        "NOK",
        "DKK",
        "NZD",
        "ZAR",
        "KRW",
        "TRY",
        "PLN",
        "CZK",
        "HUF",
        "AED",
        "THB",
        "IDR",
        "MYR",
        "PHP"
      ],
      "default": "USD"
    },
    "principal": {
      "type": "number",
      "title": "Starting balance",
      "description": "Starting balance",
      "default": 10000,
      "minimum": 0,
      "maximum": 1000000000000
    },
    "months": {
      "type": "integer",
      "title": "Projection months",
      "description": "Projection months",
      "default": 12,
      "minimum": 1,
      "maximum": 600
    },
    "monthlyContribution": {
      "type": "number",
      "title": "Monthly contribution",
      "description": "Monthly contribution",
      "default": 0,
      "minimum": 0,
      "maximum": 1000000000000
    },
    "annualReturn": {
      "type": "number",
      "title": "Annual return (%)",
      "description": "Annual return (%)",
      "default": 0,
      "minimum": -99,
      "maximum": 100
    },
    "mode": {
      "type": "string",
      "title": "Contribution mode",
      "description": "Contribution mode",
      "enum": [
        "sip",
        "lump-sum"
      ],
      "default": "sip"
    },
    "contributionGrowth": {
      "type": "number",
      "title": "Annual contribution growth (%)",
      "description": "Annual contribution growth (%)",
      "default": 0,
      "minimum": -99,
      "maximum": 100
    },
    "inflationRate": {
      "type": "number",
      "title": "Annual inflation (%)",
      "description": "Annual inflation (%)",
      "default": 0,
      "minimum": -99,
      "maximum": 100
    },
    "startMonth": {
      "type": "string",
      "title": "Starting month",
      "description": "Starting month for the projected milestone date, in YYYY-MM format.",
      "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
      "default": "2026-09"
    }
  },
  "required": [
    "currency",
    "principal",
    "months",
    "monthlyContribution",
    "annualReturn",
    "mode",
    "contributionGrowth",
    "inflationRate",
    "startMonth"
  ]
}