On top of that, jurisdictions like New York require "spread of hours" pay — an extra hour at minimum wage if an employee's workday spans more than ten hours. This required detecting overnight shifts that cross midnight, splitting them at the date boundary, and computing the earliest-to-latest span per employee per day. The system also enforces minimum wage compliance as a final check: after all tips, wages, overtime, and spread pay are tallied, if total compensation still falls below the minimum wage threshold, a make-up amount is automatically calculated.