> ## 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.

# targetDaysPerWeek

```ts theme={null}
function targetDaysPerWeek(days, opts?): RuleEntry<"target-days-week", object & TargetDaysPerWeekOptions>;
```

Softly prefers exactly this many assigned days per scheduling week without
creating a hard minimum or maximum.

## Parameters

<ResponseField name="days" type="number" required>
  Target number of assigned days per scheduling week.
</ResponseField>

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

  Optional entity scope and soft priority.
</ResponseField>

## Returns

`RuleEntry`\<`"target-days-week"`, `object` & [`TargetDaysPerWeekOptions`](./TargetDaysPerWeekOptions)>

Penalizes deviations in either direction, so working fewer days or more days
than the target both count as misses. This is soft-only by design. Pair it
with [maxDaysPerWeek](maxDaysPerWeek) or [minDaysPerWeek](minDaysPerWeek) when the same number is
also a hard bound.
