TIMEDIFF in FreeOffice PlanMaker: Syntax and Worked Examples
Calculate elapsed time across midnight, distinguish time-only from dated inputs, and preserve PlanMaker-specific formulas.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer
=TIMEDIFF(TIME(22,0,0),TIME(6,0,0)) is expected to represent 8 hours, treating the end time as the following morning. Straight subtraction of those time-only values would instead be negative 16 hours.
TIMEDIFF is useful for a time-only interval crossing midnight. When dates matter, include a date in both arguments so the intended days are explicit.
Syntax and paired input types
=TIMEDIFF(StartTime, EndTime)
Both arguments are required, in start-then-end order. The official help allows two time values or two date-and-time values. If one includes a date and the other does not, it specifies #VALUE!.
Use TIME for unambiguous time inputs and DATE plus TIME for date-time inputs. Text such as 10/01/2026 can be interpreted differently across locales, so constructing the value is preferable to relying on a date-text parser.
A spreadsheet time is stored as a fraction of a day. Eight hours corresponds to 8/24 = 1/3. Display format and underlying numeric duration are separate: a time display such as 08:00 is not the decimal number 8.
Step-by-step: an overnight shift
- Put
=TIME(22,0,0)in A2. - Put
=TIME(6,0,0)in B2. - Enter
=TIMEDIFF(A2,B2)in C2. - Apply a suitable time or duration display to C2.
Expected elapsed time is 08:00, with an underlying day fraction near 0.3333333333. The interval is 2 hours to midnight plus 6 hours after midnight.
Other independent controls are:
| Formula | Expected duration | Expected day fraction |
|---|---|---|
=TIMEDIFF(TIME(8,0,0),TIME(16,0,0)) |
8 hours | 1/3 |
=TIMEDIFF(TIME(9,15,0),TIME(10,45,0)) |
1 hour 30 minutes | 0.0625 |
=TIMEDIFF(DATE(2026,10,1)+TIME(22,0,0),DATE(2026,10,2)+TIME(6,0,0)) |
8 hours | 1/3 |
The dated example makes the overnight transition explicit. It must not be replaced by a mixed pair in which only the start carries a date.
Practical case: decimal hours and longer intervals
If the verified numeric duration is a day fraction, multiplying it by 24 produces decimal hours: 1/3×24 = 8, while 0.0625×24 = 1.5. For a fictional rate of 20 units per hour, those independently calculated durations correspond to 160 and 30 units before any breaks or rounding rules.
The function does not itself apply break deductions, overtime thresholds or payroll policies. Confirm the underlying duration before multiplying it by a rate; confusing 08:00 with numeric 8 can create a factor-of-24 mistake.
Time-only inputs cannot identify how many full calendar days have passed. For a multi-day interval, supply both dates and inspect a duration format that can show more than 24 hours. A clock format may wrap and conceal complete days. The example from October 1 at 08:00 to October 2 at 16:00 is mathematically 32 hours. The native check below confirms both a 32:00 duration display and the underlying day fraction for this case.
Errors and boundaries
The mixed input =TIMEDIFF(DATE(2026,10,1)+TIME(22,0,0),TIME(6,0,0)) is expected to return #VALUE! under the documented pairing rule. Fix the missing date instead of replacing the error with zero.
The reference does not establish every invalid-text, equal-time or reversed-date result. Do not infer an unlimited number of midnight crossings from a time-only pair or assume that reversed dated inputs follow the same overnight rule. Spreadsheet date-time values also do not automatically model daylight-saving transitions or time zones.
Excel-format warning
SoftMaker explicitly says TIMEDIFF does not exist in Microsoft Excel and that saving calculations using it in Excel format replaces them with their current fixed results. Keep an editable native PMDX master. A displayed duration in an exported file does not prove that the formula will recalculate after the start or end changes.
Native overnight and multi-day duration checks
The six direct TIMEDIFF formulas were calculated in FreeOffice PlanMaker 2024 revision F1238.1005 and retained after native PMDX save and reopen. The same-day, overnight and dated overnight cases displayed 8:00; the 90-minute case displayed 1:30. The mixed dated/time-only case returned #VALUE!. The October 1 at 08:00 to October 2 at 16:00 case displayed 32:00, with saved day fraction 1.33333333332848, close to the independent 4/3-day result within floating-point precision. A separate native companion column displays numeric day fractions. Decimal-hour and rate examples in this guide are independent arithmetic, not additional payroll tests.

Selected J7 shows the actual multi-day formula and 32:00 duration. K7 shows the native numeric day fraction rounded for display to 1.3333333333. J6 and K6 retain the mixed-input #VALUE! error.
Version and verification scope
The official FreeOffice PlanMaker 2024 reference was checked October 18, 2026. The installed application is FreeOffice PlanMaker 2024 revision F1238.1005. The original introduction version is not established by this evidence; the current reference does not identify the function as deprecated or retired. No availability claim for a different edition or a 2026 release is implied.
The native section identifies the exact tested subset, saved results and screenshots from revision F1238.1005 after native PMDX save and reopen. Other worked arithmetic and cell-reference variations are explanatory unless identified as tested. File-exchange compatibility statements are vendor guidance; no Excel-export test was performed here. English formulas in this guide use commas; use the separators required by your formula settings.