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

# daySurcharge

```ts theme={null}
function daySurcharge(amountPerHour, opts?): RuleEntry<"day-cost-surcharge", object & CostRuleOptions>;
```

Adds a flat extra amount per hour for assignments on specified days.

## Parameters

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

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

## Returns

`RuleEntry`\<`"day-cost-surcharge"`, `object` & [`CostRuleOptions`](./CostRuleOptions)>

The surcharge is independent of the member's base rate.
