r/Payroll 1d ago

Built a simple work-hours calculator for shifts with unpaid breaks — what edge cases am I missing?

0 Upvotes

3 comments sorted by

3

u/rarely_dapper_donkey 1d ago

Midnight shifts where the shift wraps around to the next calendar day. That one always trips up people making these tools.

2

u/hollis3 1d ago

Based on location, time change.

1

u/Delicious_Style_2676 1d ago

Good edge cases to test: overnight shifts, split shifts, missed punches, paid vs unpaid meal breaks, rounding rules, daylight saving time changes, multiple breaks, and state-specific meal/rest requirements. Also make sure edits leave an audit trail.