{
  "tool_id": "compound_interest",
  "slug": "compound-interest-calculator",
  "path": "/compound-interest-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/compound-interest-calculator/?<params>",
  "sample_input": {
    "tool": "compound_interest",
    "initial_principal": 25000,
    "monthly_contribution": 600,
    "annual_return_percent": 7,
    "years": 20,
    "annual_inflation_percent": 2.5,
    "comparison_monthly_contribution": 800,
    "comparison_annual_return_percent": 8
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "initial_principal": {
        "type": "integer"
      },
      "monthly_contribution": {
        "type": "integer"
      },
      "annual_return_percent": {
        "type": "integer"
      },
      "years": {
        "type": "integer"
      },
      "annual_inflation_percent": {
        "type": "number"
      },
      "comparison_monthly_contribution": {
        "type": "integer"
      },
      "comparison_annual_return_percent": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "initial_principal",
      "monthly_contribution",
      "annual_return_percent",
      "years",
      "annual_inflation_percent",
      "comparison_monthly_contribution",
      "comparison_annual_return_percent"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "summary": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "finalBalance": {
            "type": "number"
          },
          "totalContributions": {
            "type": "number"
          },
          "totalInterest": {
            "type": "number"
          },
          "inflationAdjustedBalance": {
            "type": "number"
          }
        }
      },
      "comparison": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "finalBalance": {
            "type": "number"
          },
          "totalContributions": {
            "type": "number"
          },
          "totalInterest": {
            "type": "number"
          },
          "inflationAdjustedBalance": {
            "type": "number"
          }
        }
      },
      "timeline": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "month": {
              "type": "number"
            },
            "year": {
              "type": "number"
            },
            "balance": {
              "type": "number"
            },
            "totalContributions": {
              "type": "number"
            },
            "totalInterest": {
              "type": "number"
            },
            "inflationAdjustedBalance": {
              "type": "number"
            }
          }
        }
      },
      "milestones": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "amount": {
              "type": "number"
            },
            "reachedMonth": {
              "type": "number"
            },
            "reachedYear": {
              "type": "number"
            }
          }
        }
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "initialPrincipal": {
            "type": "number"
          },
          "monthlyContribution": {
            "type": "number"
          },
          "annualReturnPercent": {
            "type": "number"
          },
          "years": {
            "type": "number"
          },
          "annualInflationPercent": {
            "type": "number"
          },
          "comparisonMonthlyContribution": {
            "type": "number"
          },
          "comparisonAnnualReturnPercent": {
            "type": "number"
          }
        }
      },
      "warnings": {
        "type": "array",
        "items": {}
      }
    }
  }
}
