# Leave-by time calculator > When do I need to leave to get there on time? The latest time to set off: your arrival time minus the journey, the stops on the way and a safety margin, also across time zones. Work out when to leave to arrive on time: count back the travel time, breaks and a safety margin from the time you must be there, even across time zones. - Page: https://how.box/leave-by/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/leave-by/?t={t}&day={day}&to={to}&h={h}&min={min}&b={b}&mg={mg}&from={from} - `t` (text): Arrive by, local time HH:MM. Example: `09:00`. - `day` (text): Arrival date, YYYY-MM-DD. Example: `2026-10-22`. - `to` (text): Destination IANA time zone, or device. Example: `Europe/Helsinki`. - `h` (whole number 0 to 99): Travel time, hours. Example: `2`. - `min` (whole number 0 to 59): Travel time, minutes on top of the hours. Example: `30`. - `b` (whole number 0 to 1440): Breaks on the way, minutes. Example: `20`. - `mg` (whole number 0 to 1440): Safety margin, minutes. Example: `15`. - `from` (text): Starting place IANA time zone, or device. Example: `Europe/Helsinki`. Example answer: https://how.box/leave-by/?t=09%3A00&day=2026-10-22&to=Europe%2FHelsinki&h=2&min=30&b=20&mg=15&from=Europe%2FHelsinki A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `leave_by_calculate`: The latest time to leave so as to arrive by a local time: leave = arrival − (travel + breaks + safety margin), with the starting place and the destination possibly in different IANA time zones (daylight saving time from the browser's time-zone database). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"leave_by_calculate","arguments":{"arrive_time":"09:00","arrive_date":"2026-10-22","to":"Europe/Helsinki","travel_hours":2,"travel_minutes":30,"breaks":20,"margin":15,"from":"Europe/Helsinki"}}}` - GET: https://how.box/mcp/run/leave_by_calculate?arrive_time=09%3A00&arrive_date=2026-10-22&to=Europe%2FHelsinki&travel_hours=2&travel_minutes=30&breaks=20&margin=15&from=Europe%2FHelsinki ## How it works The latest time to leave is found by counting backwards from the time you must arrive. Everything that takes time on the way is taken off: the journey itself, any stops, and a margin for the things that go wrong. In short: leave by = arrival time − (journey + breaks + margin). For example, to be at the airport by 09:00 with a 1 hour 20 minute drive, a 10-minute coffee stop and a 20-minute margin, you leave by 09:00 − 1 h 50 min = 07:10. If you start in another time zone, the same moment is read on your own clock, so a trip from Helsinki to Stockholm by 10:00 Swedish time means leaving by the Finnish clock an hour later than the sum alone suggests. The result is only as good as the travel time you give it: route planners, timetables and your own experience are the best guide. Time zones and daylight saving changes come from the IANA time zone database in your browser. ## FAQ **How much margin should I add?** A common rule of thumb is 10–20 % of the travel time, more for rush hour, bad weather or anything with a fixed deadline such as a flight or an exam. **How long before a flight should I be at the airport?** Airlines usually recommend about 2 hours before a flight within Europe and 3 hours before a long-haul flight. Use that time as the arrival time here. **How often should I take a break on a long drive?** The UK Highway Code recommends a break of at least 15 minutes after every two hours of driving, and advises against long drives between midnight and 6 am. Add the breaks here so they are counted in the time to leave. **Can the departure fall on the previous day?** Yes. If the total time exceeds the time available since midnight, the result shows an earlier date. **Does the tool check live traffic?** No. Enter the journey time yourself and add a margin for possible delays. **What if I need to arrive at a time that does not exist?** On the night the clocks go forward, an hour is skipped: in Helsinki on 29 March 2026 the clock jumps from 03:00 straight to 04:00. The tool says so and reads such a time with the offset from before the change; check the time you were given. **Do I need breaks and margin for a flight or a train?** Use the margin for what happens before you board: for a flight, take the airline's check-in or bag-drop deadline as the arrival time and the drive to the airport as the journey. Breaks are for long drives you do yourself. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)