Age of Money month by month
get_age_of_moneyShow how many days money stays in YNAB budget accounts before being spent, with monthly figures, trend and direction, to check if you live on last month's income.
Instructions
YNAB's Age of Money: how old the money spent is today, and its trend month by month.
Use it for "how old is my money?", "am I living on last month's income?" or "is my buffer growing?". The figure is YNAB's own, in days: how long, on average, money stayed in the budget accounts before being spent, the oldest money spent first. Over 30 days means living on last month's income. The answer gives each month's figure up to the current one, the latest, the change and its direction over the period; a month is null when YNAB had not enough history. Relay the notes with the figures. For how long the money would last without income use get_runway. One YNAB request, the list of months; changes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | YNAB plan id or 'last-used'. | |
| months_count | No | Months to show, the current one included, 1 to 24 (default 12). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | The latest Age of Money, in days; null when YNAB gives none. | |
| as_of | Yes | The month of that figure, YYYY-MM: the current one unless YNAB has none for it. | |
| notes | Yes | How YNAB counts, and what is missing, to tell the user. | |
| trend | Yes | The direction of that change; null with fewer than two figures. | |
| change | Yes | Days gained (positive) or lost from the first month with a figure to the latest; null with fewer than two figures. | |
| months | Yes | The months up to the current one, oldest first. | |
| message | Yes | The conclusion in one sentence or two, for the agent to relay. |