# @northguild/gmt/workforce > Functions that check duty logs against hours-of-work limits: total duty, find rests and the longest run, and report violations. Back to the [root llms.txt](https://northguild.dev/gmt/llms.txt). ## calculate - [dutyDayFor](https://northguild.dev/gmt/reference/workforce/calculate/dutyDayFor.md): Return the operator-designated day an instant falls in: from the most recent `dayStartTime` in `timeZone` at or before the instant, up to (not including) the next one. - [dutyTotals](https://northguild.dev/gmt/reference/workforce/calculate/dutyTotals.md): Return the time a duty log spends in any of `statuses` inside a window, as an exact ISO 8601 duration. - [dutyViolations](https://northguild.dev/gmt/reference/workforce/calculate/dutyViolations.md): Return every violation of a set of hours-of-work rules inside a range, each with the window that failed it: the record over a month, not the check before dispatch. - [evaluateDutyLog](https://northguild.dev/gmt/reference/workforce/calculate/evaluateDutyLog.md): Evaluate every hours-of-work rule over a duty log at one instant, and report each one whether or not it binds. - [longestRun](https://northguild.dev/gmt/reference/workforce/calculate/longestRun.md): Return the longest unbroken stretch a duty log spends in any of `statuses` inside a window. - [qualifyingRestPairs](https://northguild.dev/gmt/reference/workforce/calculate/qualifyingRestPairs.md): Return every paired rest in a duty log: two separate rests that together count as one, because they meet all three floors of `spec.pair`. - [qualifyingRests](https://northguild.dev/gmt/reference/workforce/calculate/qualifyingRests.md): Return every rest of at least `minimum` in a duty log: the runs of touching entries in any of `spec.statuses` that last that long. ## validate - [isValidDutyLog](https://northguild.dev/gmt/reference/workforce/validate/isValidDutyLog.md): Validate whether a value is a duty log every `workforce/` function accepts.