# Various Rule: Fixed Quantity

<figure><img src="/files/7XKyZVmrthLE8ReQav7p" alt=""><figcaption><p>Figure 1: Create modal using Fixed Quantity rule</p></figcaption></figure>

The amount is calculated using:

$$
Amount = Quantity \times Rate
$$

If you need to record a ***negative*** amount, simply use a ***negative*** rat&#x65;**.**

For example:

$$
Quantity = 500.0\Rate=-2.5\Total\space Amount =-1250.0
$$

### Updates to the Various Cost/Revenue Tab and Full-Screen Drawer

An additional **Quantity** column has been introduced to both the **Various Cost/Revenue** tab and the full-screen **Voyage Drawer**. See the figures below.

{% tabs %}
{% tab title="Various Cost/Revenue Tab" %}

<figure><img src="/files/HL6RMJNTcUcCUhfnKSJw" alt=""><figcaption><p>Figure 2: Voyage Various Cost/Revenue Tab</p></figcaption></figure>
{% endtab %}

{% tab title="Full-Screen View" %}

<figure><img src="/files/mcwXXtBF4kbfC9W9pnsy" alt=""><figcaption><p>Figure 3: Voyage Full-Screen Various Grid</p></figcaption></figure>
{% endtab %}
{% endtabs %}

***

{% hint style="warning" %}

### Important notes about the Quantity field:

* **When “Fixed Quantity” is selected**: The quantity is based on what you enter, and is used to calculate the various amount.
* **When any other rule is selected**: The quantity is determined by the chosen rule, and the value is ***not*** used for the calculation of the amount.
  {% endhint %}


---

# 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/master-data/various-costs-and-revenues/various-items-rules/various-rule-fixed-quantity.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.
