Count days of stay
count_daysCounts days of stay per country from the trips the user provides (country, from, to) under each country's own counting rule (calendar year, tax year, any 12 months, US substantial presence test, continuous stay): days in the counting period, the day threshold for tax residence and its legal source, the date it was reached or how many more days are needed, and Schengen 90/180 days used. The day of arrival and departure counts in both countries. It does not track anyone: it only counts the trips passed in, and they are not stored.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"trips": "<trips>"
},
"name": "count_days"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | Date to count up to, YYYY-MM-DD. Default: today. Later trips count as planned. | |
| trips | Yes | Stays, one item per stay. | |
| version | No | Language of the texts (version id). Default: en. |