# Deviation Calculation

The deviation calculation function offers a comprehensive analysis of the difference between the current voyage and the same voyage as if it were direct — from the ballast port to the last port call.

This function is particularly useful when freight rates are low, voyages must adhere to strict schedules, or deviations are required for compliance. It helps determine whether an additional detour can generate enough extra revenue to offset the added distance, time, emissions, and fuel costs.

<figure><img src="/files/Iu8z36CkQUqjt21sJtl9" alt=""><figcaption><p>Figure 1. Deviation Calculation modal.</p></figcaption></figure>

Figure 1 shows the Deviation Calculation window, comparing the current voyage results (in the Loaded column) with a hypothetical direct voyage (in the Direct column). The Variance column highlights the differences between the two. By clicking Open Direct Voyage, users can review the direct route’s details (Figure 2). In this example, the detour with cargo generates higher revenue, making it a more favourable option.

#### Prerequisites:

* The Deviation Calculation function is available only for **Estimate Voyages**.

<figure><img src="/files/93CaGUt6i9mVr0NzacPf" alt=""><figcaption><p>Figure 2. Direct Voyage from the Deviation modal.</p></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://docs.dataloy.com/release-8.25/voyage-management-system/step-by-step-guides/voyages/maintain-voyages/voyage-analysis/deviation-calculation.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.
