{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://klarfort.com/tools/dividend-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"
    },
    "mode": {
      "type": "string",
      "title": "Dividend mode",
      "description": "Dividend mode",
      "enum": [
        "projection",
        "income-target"
      ],
      "default": "projection"
    },
    "principal": {
      "type": "number",
      "title": "Starting investment",
      "description": "Starting investment",
      "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 investment",
      "description": "Monthly investment",
      "default": 0,
      "minimum": 0,
      "maximum": 1000000000000
    },
    "monthlyIncomeTarget": {
      "type": "number",
      "title": "Monthly income target",
      "description": "Monthly income target",
      "default": 1000,
      "minimum": 0,
      "maximum": 1000000000000
    },
    "dividendYield": {
      "type": "number",
      "title": "Initial annual dividend yield (%)",
      "description": "Initial annual dividend yield (%)",
      "default": 4,
      "minimum": 0,
      "maximum": 100
    },
    "dividendGrowth": {
      "type": "number",
      "title": "Annual dividend-per-share growth (%)",
      "description": "Annual dividend-per-share growth (%)",
      "default": 0,
      "minimum": -99,
      "maximum": 100
    },
    "priceGrowth": {
      "type": "number",
      "title": "Annual share-price growth (%)",
      "description": "Annual share-price growth (%)",
      "default": 0,
      "minimum": -99,
      "maximum": 100
    },
    "taxRate": {
      "type": "number",
      "title": "Dividend tax (%)",
      "description": "Dividend tax (%)",
      "default": 0,
      "minimum": 0,
      "maximum": 100
    },
    "reinvest": {
      "type": "boolean",
      "title": "Reinvest dividends",
      "description": "Buy additional shares with after-tax dividends at each month end.",
      "default": true
    }
  },
  "required": [
    "currency",
    "mode",
    "principal",
    "months",
    "monthlyContribution",
    "monthlyIncomeTarget",
    "dividendYield",
    "dividendGrowth",
    "priceGrowth",
    "taxRate",
    "reinvest"
  ]
}