---
title: "Time Duration Calculator"
method: GET
path: "/api/calc/time-duration-calculator"
tags: ["DateTime"]
---

# Time Duration Calculator

`GET /api/calc/time-duration-calculator`

## Request

- Base URL: `https://calcbright.com`
- URL: `https://calcbright.com/api/calc/time-duration-calculator`
- Auth: none declared

9:15 AM to 5:45 PM is 8 h 30 min, or 8.5 hours. Get the time between any two clock times, overnight shifts included, in hours and minutes, decimal and minutes.

## Query parameters

- `start` string: Start time (HH:MM, 24-hour)
- `end` string: End time An end time earlier than the start is treated as the next day. (HH:MM, 24-hour)

## Response `200`

Calculation result

- CalcOutput
  - `ok` boolean
  - `tool` string
  - `name` string
  - `url` string: Open this link to see the full calculation
  - `inputs` object
  - `summary` string: Plain-text answer
  - `details` string
  - `result` object
  - `errors` object

## Other responses

- `400`: Invalid input (see errors)

---

[API](https://skmtc.dev/calcbright/apis/calcbright-calculator-api.md) · [All operations](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/revisions/f58229e56e58?raw)
