{
  "tool_id": "dividend_reinvestment_calculator",
  "slug": "dividend-reinvestment-calculator",
  "path": "/dividend-reinvestment-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/dividend-reinvestment-calculator/?<params>",
  "sample_input": {
    "tool": "dividend_reinvestment_calculator",
    "initial_investment": 10000,
    "share_price": 50,
    "annual_dividend_per_share": 2,
    "annual_price_appreciation_percent": 6,
    "years": 10,
    "monthly_contribution": 200
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "initial_investment": {
        "type": "number"
      },
      "share_price": {
        "type": "number"
      },
      "annual_dividend_per_share": {
        "type": "number"
      },
      "annual_price_appreciation_percent": {
        "type": "number"
      },
      "years": {
        "type": "number"
      },
      "monthly_contribution": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "initial_investment",
      "share_price",
      "annual_dividend_per_share",
      "annual_price_appreciation_percent",
      "years"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "finalPortfolioValue": {
        "type": "number"
      },
      "totalDividendsEarned": {
        "type": "number"
      },
      "totalDividendsReinvested": {
        "type": "number"
      },
      "totalSharesOwned": {
        "type": "number"
      },
      "totalInvestedCapital": {
        "type": "number"
      },
      "endingSharePrice": {
        "type": "number"
      },
      "marketGain": {
        "type": "number"
      },
      "totalGain": {
        "type": "number"
      }
    }
  }
}
