A negative subtraction is not always a bad shift
The exercise permits one midnight crossing. MOD supplies that stated interpretation.
Step-by-step guide · read-only ·
Loading your interactive spreadsheet…
Preparing the worksheet and formulas…
Fill D2:D5 with numeric hours for shifts shorter than 24 hours. A and B are numeric clock times at minute precision, C is integer unpaid break minutes. The end may be on the next day; equal endpoints mean zero duration. Return Review for negative breaks or breaks longer than the shift. No timezone, daylight-saving, overtime or payroll policy is inferred.
Follow the highlighted cells. Switch to Your turn to edit. Answer cells: D2, D3, D4, D5. Browser calculations may differ from your Excel version.
Practice stays on this device. No worksheet data is uploaded.
Use one-day clock wrap, whole-minute arithmetic and a declared break rule to calculate numeric paid hours.
Use one-day clock wrap, whole-minute arithmetic and a declared break rule to calculate numeric paid hours.
=IF(OR(C2<0,C2>ROUND(MOD(B2-A2,1)*1440,0)),"Review",(ROUND(MOD(B2-A2,1)*1440,0)-C2)/60)The formula uses the interactive worksheet above. Adjust ranges and criteria for your own data.
22:00 through 06:00 means eight clock hours under the less-than-one-day rule. Time-only values cannot identify a two-day shift. Use full dated timestamps when that distinction matters.
Seven hours fifteen minutes is 7.25 hours, not 7.15. This exercise does not round pay or apply overtime; it returns the exact net minute count divided by 60.
The source has clock times without dates. An earlier end is on the next day; equal endpoints mean zero, not a full day. Longer shifts need dated timestamps.
MOD with divisor 1 retains the positive fraction of one day. Subtraction without this wrap makes an overnight shift negative.
The source is at whole-minute precision. Multiply the day fraction by 1440 and round to the nearest minute to remove floating-point residue.
A break must be nonnegative and no longer than the full shift. Return Review rather than allowing a negative paid duration.
Subtract valid break minutes and divide by 60. Return numeric hours, not HOUR, which extracts only the hour component.
The exercise permits one midnight crossing. MOD supplies that stated interpretation.
MAX(0,...) would turn an excessive break into zero. The task deliberately requires Review for that record.
Formula entry, fill and all six authored datasets were checked in Chrome on October 18, 2026. Numeric timestamp/clock display and original/current/frozen downloads have separate package/browser checks. Local clocks carry no timezone or daylight-saving interpretation; no payroll policy is inferred. Native Excel scope is recorded in the date/time validation report; Google Sheets remains unverified.
Content version 1. Practice checks compare calculated results across different datasets; they do not certify every possible formula.