Time Duration Calculator
Time Duration is evaluated from Start Time, End Time and Break. The calculation reports Hours, Minutes and Seconds.
Results
About the Time Duration Calculator
The calculator uses a multi formula configuration. Each reported value is read as a direct evaluation of the stored rules with the declared field formats and units.
Formula basis:
2. Gross duration = (end_minutes - start_minutes + 1440) mod 1440 (handles overnight shifts)
3. Net duration = Gross - break minutes
4. Hours = floor(net minutes / 60)
5. Remaining minutes = net minutes mod 60
6. Decimal hours = net minutes / 60 (rounded to 2 decimal places)
Interpret the outputs in the order shown by the result fields. Optional inputs affect only the outputs that depend on those variables.
Formula & How It Works
The calculation applies the following relations exactly as recorded in the metadata: 2. Gross duration = (end_minutes - start_minutes + 1440) mod 1440 (handles overnight shifts) 3. Net duration = Gross - break minutes 4. Hours = floor(net minutes / 60) 5. Remaining minutes = net minutes mod 60 6. Decimal hours = net minutes / 60 (rounded to 2 decimal places) Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.
Worked Examples
Example 1: Standard workday: 9:00 AM to 5:30 PM, 30-min break
Inputs
With Start Time = 9:00 AM, End Time = 5:30 PM and Break = 30 as the stated inputs, the result is Hours = 8 hrs, Minutes = 30 min and Seconds = 0 sec. Each value corresponds to the declared output fields.
Example 2: Overnight shift: 11:00 PM to 7:30 AM
Inputs
With Start Time = 11:00 PM, End Time = 7:30 AM and Break = 30 as the stated inputs, the result is Hours = 8 hrs, Minutes = 30 min and Seconds = 0 sec. Each value corresponds to the declared output fields.
Example 3: Consulting billing: 10:15 AM to 3:45 PM, no break
Inputs
With Start Time = 10:15 AM, End Time = 3:45 PM and Break = 0 as the stated inputs, the result is Hours = 5 hrs, Minutes = 30 min and Seconds = 0 sec. Each value corresponds to the declared output fields.
Example 4: Part-time: 6:00 AM to 11:30 AM, no break
Inputs
With Start Time = 6:00 AM, End Time = 11:30 AM and Break = 0 as the stated inputs, the result is Hours = 5 hrs, Minutes = 30 min and Seconds = 0 sec. Each value corresponds to the declared output fields.
Common Use Cases
- Calculate hours worked between clock-in and clock-out times
- Find duration of a flight or road trip
- Determine elapsed time for billing/invoicing