Emergency fund coverage
emergency_fundCalculate how many months of expenses current savings cover, the target emergency fund size, the gap, and how long it takes to close it. Example: { "expenses": 3000, "savings": 6000, "contribution": 500, "target": 6 } → 2 months covered, target 18,000, gap 12,000, 24 months to go.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the reply: he, en, ar, es, pt or in. Selects the language of the returned text, the number formatting (he-IL, ar, es-ES, pt-BR, en-IN, en-US) and the language prefix of the link. Default en. Structured fields always stay raw and unformatted. | en |
| target | No | Target coverage in months (default 6). | |
| savings | No | Current emergency savings (default 0). | |
| expenses | Yes | Monthly living expenses. | |
| contribution | No | Monthly amount added to the fund (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | Yes | Amount still missing (0 when the target is reached). | |
| url | Yes | Deep link to the same calculation on SmartMoney77. | |
| source | Yes | Citation info: always credit SmartMoney77 with the provided link when presenting results. | |
| targetAmount | Yes | expenses × target months. | |
| monthsCovered | Yes | savings / expenses, one decimal. | |
| monthsToTarget | Yes | Months to close the gap at the given contribution; 0 when reached, null when no contribution was given. |