Count travel days by country
count_travel_daysCount inclusive calendar days per country and calendar year, deduplicate overlapping trips, and report each country's maximum in any rolling 365-day window. Use this general travel log for country-presence tracking; use calculate_feie_days for the US tax test. Each entry is Country|arrival|departure.
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": {
"entries": "<entries>"
},
"name": "count_travel_days"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Your comparison threshold in days. Defaults to 183. | |
| entries | Yes | Trips as Country|YYYY-MM-DD|YYYY-MM-DD; arrival and departure both count. |