# Auto Calculation of Appointment Duration

Auto Calculation of Appointment Duration simplifies the scheduling process by predefining treatment durations in the **Service Master** screen. When the treatment duration is specified, it is automatically populated during appointment booking. This eliminates manual entry, minimizes errors, and reduces the effort required for manual calculations.

This feature is particularly beneficial for treatments with set durations, offering flexibility in scenarios where multiple treatments are selected. Users can customize appointments further by choosing between **Cumulative** or **Max Time** options for total duration calculation, ensuring the process aligns with operational needs.

***

### Pre-defining Treatment Duration in Service Master for Auto Calculation

* Typically, the duration for each appointment is entered manually in the appointment pop-up. For treatments with a predefined duration, it can be set in the **Average Time in Minutes** field within the **Service Master** screen (**Home >** **Admin > Items > Service Master**).

  <figure><img src="/files/3PBenoxztDZorWDdTFtm" alt=""><figcaption></figcaption></figure>
* The duration will be automatically calculated based on the predefined value when the treatment is selected in the **Treatment Information** section during appointment booking.

***

### Steps for Auto Calculation&#x20;

* Open the **Scheduler** **(Home > Front Desk > Scheduler)** screen and double-click on the available time slot for the required doctor. This will open the **Appointment** pop-up screen.
* Identify whether the patient is [new](/uniteemr/application-modules/scheduler/appointment-booking/new-patient.md) or [existing](/uniteemr/application-modules/scheduler/appointment-booking/existing-patient.md), then follow the appropriate steps for appointment creation.
* In addition, ensure to input this information in the **Treatment Information** section of the **APPOINTMENT** tab. Use the dropdown menu to find the relevant treatment items. Once a treatment is selected, the appointment duration for specific treatments will be auto-populated in the **Appointment Information** section. If multiple treatments are chosen, the total duration will be calculated and displayed automatically.

  <figure><img src="/files/7MeUvG3PX1WNJzgd1HkO" alt=""><figcaption></figcaption></figure>
* In the **Treatment Information** section, when selecting multiple treatments, an additional dropdown menu appears where users can choose between **Single Appointment** or **Multiple Appointment**.
* Select **Single Appointment**.
* Upon selecting **Single Appointment,** radio buttons for **Cumulative** and **Max Time** will be displayed.

  <figure><img src="/files/NkGDuP2ruNE40QFK48u3" alt=""><figcaption></figcaption></figure>

#### Cumulative&#x20;

When selecting a **Cumulative** radio button, the duration of all selected treatments will be added together to determine the total appointment duration.

**Example**:

* Duration of treatment **(HSV) - I, IgG**: 20 minutes
* Duration of treatment **(HSV) - I, IgM**: 35 minutes
* Total duration: 20 + 35 = 55 minutes
* The appointment duration will be set to 55 minutes.

  <figure><img src="/files/j7V8SBMuHzBcn0GHsaRL" alt=""><figcaption></figcaption></figure>

#### Max Time

When selecting the **Max Time** radio button, only the maximum duration among all selected treatments will be considered for appointment duration.

**Example**:

* Duration of treatment **(HSV) - I, IgG**: 20 minutes
* Duration of treatment **(HSV) - I, IgM**: 35 minutes
* Maximum duration: 35 minutes
* The appointment duration will be set to 35 minutes.

  <figure><img src="/files/VHD2mP052XsSXh6p2PD5" alt=""><figcaption></figcaption></figure>

***


---

# 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://unitecare.gitbook.io/uniteemr/application-modules/scheduler/appointment-booking/auto-calculation-of-appointment-duration.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.
