Skip to main content
function dayMultiplier(factor, opts?): RuleEntry;
Multiplies the base rate for assignments on specified days.

Parameters

factor
number
required

Returns

RuleEntry The base cost (1x) is already counted by minimizeCost; this rule adds only the extra portion above 1x.

Example

dayMultiplier(1.5, { dayOfWeek: weekend })