# Timeslice Duration & Time Range Parser > Turn 1h30, 90m, 1:30, 9-10:30 or 9am to 1pm into h:mm, decimal hours and ISO 8601. Reads durations and time ranges the way people type them — 1h30, 1 hour 30 minutes, 90m, 1:30, 1,5 h, PT1H30M, 9-10:30, 9am to 1pm, 22:00-02:00, 14:00 + 45m — one per line, and returns each as h:mm, decimal hours and an ISO 8601 duration, with the total and how every line was read. Part of usefulweb.app (https://usefulweb.app/). Part of [Timeslice](https://timeslice.usefulweb.app/) (ownerApp: timeslice). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://timeslicedurationparser.usefulweb.app/ (interactive tool at https://timeslicedurationparser.usefulweb.app/tool) - JSON API: POST https://timeslicedurationparser.usefulweb.app/api/v1/calculate with a JSON object of inputs (schema: https://timeslicedurationparser.usefulweb.app/api/v1/tool) - OpenAPI: https://timeslicedurationparser.usefulweb.app/openapi.json - MCP (Streamable HTTP): https://timeslicedurationparser.usefulweb.app/mcp - tool `timeslice_duration_parser` ## Inputs - lines (textarea): Durations or time ranges (one per line) - Durations: 1h30, 1h 30m, 90m, 1:30, 1.5 (a bare number up to 10 is hours, larger whole numbers are minutes), PT1H30M. Ranges: 9-10:30, 9:00–17:30, 9am to 1pm, 14:00 + 45m. - clock (select): Show times as - roundMinutes (select): Round each line to ## Method - Each line is tried as a time range first (start–end, “to”, “until”, “bis”, or start + duration), then as a duration, then as a single time of day. An end at or before the start means the range ends on the next day. - Durations: number + unit tokens (d, h, hr, hour, min, m, s, also German Std/Min) from large to small; a trailing bare number after hours means minutes (1h30); h:mm and h:mm:ss; ISO 8601 PnDTnHnMnS. A bare number up to 10 counts as hours, a larger whole number as minutes. - Times: 9, 930, 9:30, 9.30, 9h30, 21h, 9:30 pm, 12 am = 00:00, 12 pm = noon, noon and midnight; 24:00 is the end of the day. A meridiem on the end time also applies to the start when the start has none (9-11am). - Decimal hours are rounded to two places for display; totals use exact seconds. Optional rounding applies to each line before the total.