← All tool references

Travel & Auto · not_available

Flight Time Calculator

Calculate flight duration from departure local time, arrival local time, departure utc offset, arrival utc offset.

Open public tool

Overview

Category
Travel & Auto
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/flight-time-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/flight-time-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

departure_time · string · required
Enter departure local time.
arrival_time · string · required
Enter arrival local time.
departure_utc_offset · number · required
Enter departure utc offset.
arrival_utc_offset · number · required
Enter arrival utc offset.
arrival_next_day · string · required
Enter arrival next day. Accepted values: no, yes.
{
    "type": "object",
    "properties": {
        "departure_time": {
            "type": "string",
            "description": "Enter departure local time."
        },
        "arrival_time": {
            "type": "string",
            "description": "Enter arrival local time."
        },
        "departure_utc_offset": {
            "type": "number",
            "description": "Enter departure utc offset."
        },
        "arrival_utc_offset": {
            "type": "number",
            "description": "Enter arrival utc offset."
        },
        "arrival_next_day": {
            "type": "string",
            "description": "Enter arrival next day.",
            "enum": [
                "no",
                "yes"
            ]
        }
    },
    "required": [
        "departure_time",
        "arrival_time",
        "departure_utc_offset",
        "arrival_utc_offset",
        "arrival_next_day"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

flight_duration · string
Flight duration produced by the tool.
duration_minutes · number
Duration minutes produced by the tool.
utc_departure · string
UTC departure produced by the tool.
utc_arrival · string
UTC arrival produced by the tool.
{
    "type": "object",
    "properties": {
        "flight_duration": {
            "type": "string",
            "description": "Flight duration produced by the tool."
        },
        "duration_minutes": {
            "type": "number",
            "description": "Duration minutes produced by the tool."
        },
        "utc_departure": {
            "type": "string",
            "description": "UTC departure produced by the tool."
        },
        "utc_arrival": {
            "type": "string",
            "description": "UTC arrival produced by the tool."
        }
    },
    "additionalProperties": false
}

Flight Time Calculator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/flight-time-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "departure_time": "18:30",
    "arrival_time": "08:15",
    "departure_utc_offset": -5,
    "arrival_utc_offset": 1,
    "arrival_next_day": "yes"
}'
{
    "ok": true,
    "data": {
        "slug": "flight-time-calculator",
        "result": {
            "values": {
                "flight_duration": "7 h 45 min",
                "duration_minutes": 465,
                "utc_departure": "23:30",
                "utc_arrival": "07:15 (+1 day)"
            },
            "display": {
                "display": "7 h 45 min"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.