> ## Documentation Index
> Fetch the complete documentation index at: https://docs.erna.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# maxHoursPerDay

```ts theme={null}
function maxHoursPerDay(hours, opts?): RuleEntry<"max-hours-day", object & RuleOptions>;
```

Caps each targeted member's assigned hours per day, optionally scoped by role,
skill, member, or time.

## Parameters

<ResponseField name="hours" type="number" required />

<ResponseField name="opts">
  [`RuleOptions`](./RuleOptions)
</ResponseField>

## Returns

`RuleEntry`\<`"max-hours-day"`, `object` & [`RuleOptions`](./RuleOptions)>

Applies an upper bound to each member's total assigned hours on a scheduling
day. The bound can be scoped by role, skill, member, or supported time scope.
