{
  "tool_id": "investment_fee_impact",
  "slug": "investment-fee-calculator",
  "path": "/investment-fee-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/investment-fee-calculator/?<params>",
  "sample_input": {
    "tool": "investment_fee_impact",
    "initial_investment": 50000,
    "annual_contribution": 10000,
    "years": 25,
    "gross_return_percent": 7,
    "expense_ratio_a": 0.15,
    "expense_ratio_b": 0.9
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "initial_investment": {
        "type": "integer"
      },
      "annual_contribution": {
        "type": "integer"
      },
      "years": {
        "type": "integer"
      },
      "gross_return_percent": {
        "type": "integer"
      },
      "expense_ratio_a": {
        "type": "number"
      },
      "expense_ratio_b": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "initial_investment",
      "annual_contribution",
      "years",
      "gross_return_percent",
      "expense_ratio_a",
      "expense_ratio_b"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "endingValueA": {
        "type": "number"
      },
      "endingValueB": {
        "type": "number"
      },
      "cumulativeFeesA": {
        "type": "number"
      },
      "cumulativeFeesB": {
        "type": "number"
      },
      "feeDragDifference": {
        "type": "number"
      },
      "timeline": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "year": {
              "type": "number"
            },
            "portfolioA": {
              "type": "number"
            },
            "portfolioB": {
              "type": "number"
            },
            "feeDragDifference": {
              "type": "number"
            }
          }
        }
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "initialInvestment": {
            "type": "number"
          },
          "annualContribution": {
            "type": "number"
          },
          "years": {
            "type": "number"
          },
          "grossReturnPercent": {
            "type": "number"
          },
          "expenseRatioA": {
            "type": "number"
          },
          "expenseRatioB": {
            "type": "number"
          }
        }
      },
      "warnings": {
        "type": "array",
        "items": {}
      }
    }
  }
}
