Handy Orchard

Clock time duration

Find minutes and decimal hours between two clock times, with an explicit next-day choice and break deduction.

Your input

Select explicitly for an overnight period. Equal times with this selected mean 24 hours.

Outputs are cleared when the input changes.

Result

Enter your data or use the example, then run the tool.

Worked example

From 22:30 to 06:15 on the following day is 465 minutes. Subtracting a 30-minute break leaves 435 minutes: 7 hours 15 minutes, or 7.25 decimal hours.

08:00 to 08:00 on the same day is zero; selecting the following day makes it a full 24-hour clock period.

Method

Convert each HH:MM clock time to minutes after midnight. Add 1,440 to the end only when the following-day option is selected, then subtract start and break minutes.

The decimal-hour result is net minutes divided by 60. The hours-and-minutes display uses whole hours and the remaining minutes.

Limits

This is clock arithmetic without a date or timezone. It does not calculate daylight-saving changes, time-zone travel, payroll rounding, overtime or employment-law rules.

The end can be on the same or following day only. Seconds are not accepted. A break longer than the full selected period is rejected.

Sources

HTML time input and its 24-hour value format

Related tools

Recipe portion scalerUnit price comparer

Your inputs stay on this device. Only optional, consented page visits are measured. Input values, files, filenames and processing logs are not sent to Analytics.

When switching languages, text, settings and selected files are temporarily kept on this device. Transfers are removed after restoring; interrupted transfers are cleaned up on a later visit. Inputs and files are never uploaded.