{
  "tool_id": "emergency_fund_runway",
  "slug": "emergency-fund-runway-planner",
  "path": "/emergency-fund-runway-planner/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/emergency-fund-runway-planner/?<params>",
  "sample_input": {
    "tool": "emergency_fund_runway",
    "liquid_reserves": 15000,
    "essential_monthly_expenses": 4200,
    "baseline_monthly_income": 5600,
    "monthly_savings_capacity": 850,
    "target_runway_months": 6,
    "income_loss_percent": 30,
    "expense_spike_percent": 10,
    "shock_duration_months": 6
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "liquid_reserves": {
        "type": "integer"
      },
      "essential_monthly_expenses": {
        "type": "integer"
      },
      "baseline_monthly_income": {
        "type": "integer"
      },
      "monthly_savings_capacity": {
        "type": "integer"
      },
      "target_runway_months": {
        "type": "integer"
      },
      "income_loss_percent": {
        "type": "integer"
      },
      "expense_spike_percent": {
        "type": "integer"
      },
      "shock_duration_months": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "liquid_reserves",
      "essential_monthly_expenses",
      "baseline_monthly_income",
      "monthly_savings_capacity",
      "target_runway_months",
      "income_loss_percent",
      "expense_spike_percent",
      "shock_duration_months"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "runwayMonthsJobLoss": {
        "type": "number"
      },
      "runwayMonthsCustomShock": {
        "type": "number"
      },
      "targetEmergencyFund": {
        "type": "number"
      },
      "fundGap": {
        "type": "number"
      },
      "rebuildMonths": {
        "type": "number"
      },
      "scenarioTable": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "incomeLossPercent": {
              "type": "number"
            },
            "expenseSpikePercent": {
              "type": "number"
            },
            "monthlyShortfall": {
              "type": "number"
            },
            "runwayMonths": {
              "type": "number"
            },
            "cashNeededForShockWindow": {
              "type": "number"
            },
            "shortfallForShockWindow": {
              "type": "number"
            }
          }
        }
      },
      "sensitivityTable": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "targetRunwayMonths": {
              "type": "number"
            },
            "targetFund": {
              "type": "number"
            },
            "rebuildMonths": {
              "type": "number"
            }
          }
        }
      },
      "warnings": {
        "type": "array",
        "items": {}
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "liquidReserves": {
            "type": "number"
          },
          "essentialMonthlyExpenses": {
            "type": "number"
          },
          "baselineMonthlyIncome": {
            "type": "number"
          },
          "monthlySavingsCapacity": {
            "type": "number"
          },
          "targetRunwayMonths": {
            "type": "number"
          },
          "shockDurationMonths": {
            "type": "number"
          }
        }
      }
    }
  }
}
