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

Parameters

number
required
Target number of assigned days per scheduling week.
TargetDaysPerWeekOptionsOptional entity scope and soft priority.

Returns

RuleEntry<"target-days-week", object & 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 or minDaysPerWeek when the same number is also a hard bound.