> ## Documentation Index
> Fetch the complete documentation index at: https://docsy3.mile.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Dynamic Visit Time

> Make the visit time grow with the load of each visit.

By default each visit takes the time set on the visit, or the profile's **Default Visit Time**. With **Dynamic Visit Time** the visit time also depends on the load: you add a number of minutes for every unit of a capacity constraint. A visit with 10 boxes then takes longer than a visit with 1 box.

> [!NOTE]
>
> Required permission:
>
> * View configuration
> * Edit configuration

## Setting it up

1. Open **Planning › Routing › Configuration** and go to **Speed & capacity**.
2. Make sure at least one [capacity constraint](https://docsy3.mile.app/pages/planning/routing/configuration/capacity-constraint.md) is ticked. Without one, the dialog says **Please select at least one capacity constraint to continue configuring the dynamic visit time.**
3. Next to **Default Visit Time**, click **Dynamic Visit Time**.
4. For each ticked constraint, type the minutes to add for every unit.
5. Click **Apply**. The rules are saved to the profile right away.

![Dynamic Visit Time](https://mintcdn.com/mile-app/PeReiScL9I1UXMJO/images/v4/planning/dynamic-visit-time.png?fit=max\&auto=format\&n=PeReiScL9I1UXMJO\&q=85\&s=1b6fb05091d98168e35812498fdcdf6d)

Each line reads **Add *N* minutes for every 1 *unit* of *constraint* capacity**, for example **Add 2 minutes for every 1 kg of weight capacity**. Set a line to `0` to leave that constraint out.

## How the visit time is worked out

* When the visit has **no visit time of its own**, its time is the **Default Visit Time** plus the dynamic time. Example: default 15 minutes, 2 minutes per box, a visit with 5 boxes takes 15 + 10 = 25 minutes.
* When the visit **has its own visit time**, that time is used and the default and dynamic times are ignored.

Unticking or deleting a constraint also removes its dynamic visit time.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.