# Penalty per late hour

This constraint represents an **additional cost applied per hour of delay**. It gives the user finer control over how strictly visit time windows are respected. **Note:** Constraints related to tolerance should be used with care, as they can dominate the optimization process by making delays the primary optimization priority.

**Format:** Numeric (integer or decimal)

**Example:**\
If you are willing to accept detours and additional distance to better respect delivery time windows—for example, traveling an extra **70 km** to avoid being **5 minutes late**—the penalty can be calculated as follows:

* Cost per km = **0.5**
* Extra distance = **70 km**
* Conversion factor = **12** (60 minutes / 5 minutes)

Penalty per late hour = **0.5 × 70 × 12 = 420**

Therefore, the value to enter for the **Penalty per late hour** constraint is **420**.

**Depends on:**

* Opening time
* Closing time

**Incompatible with:**

* Delay tolerance


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nomadia-docs.gitbook.io/products/solver-constraints/my-deliveries/availability/penalty-per-late-hour.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
