> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/administration-and-setup/workflow/cards-overview/then/action/ai-calculation-for-cost-increase-surcharges.md).

# AI Calculation for Cost Increase Surcharges

<figure><img src="/files/7ylzh1EdsqinuqTfKWa2" alt="" width="563"><figcaption></figcaption></figure>

## Purpose:

The **"AI Calculation for Cost Increase Surcharges"** workflow card uses AI to automatically compute surcharge amounts based on cost increases. It ensures consistent and accurate surcharge calculations, streamlining workflows and reducing manual effort.

## Components of the Card:

* **Cost Increase Factor**
  * **Description:** The multiplier or percentage applied to the base cost to calculate the surcharge.
  * **Detail:** Determines the surcharge amount based on the cost increase (e.g., a factor of 1.10 for a 10% increase).
* **Base Cost Field**
  * **Description:** The field containing the original cost value used as the basis for the surcharge calculation.
  * **Detail:** Selected automatically or defined within the workflow for reference during the calculation.
* **Surcharge Field**
  * **Description:** The field where the AI-calculated surcharge value is stored.
  * **Detail:** This field reflects the calculated surcharge, making it available for further processing or reporting.

## Functionality:

**Condition Evaluation:**

* The card activates only if both the **"Where"** and **"And Sections"** conditions evaluate as true.
* If either condition evaluates as false, no surcharge calculation is performed.

**AI-Driven Calculation:**

* The system applies the **Cost Increase Factor** to the **Base Cost Field** to calculate the surcharge.
* The result is stored in the **Surcharge Field**, ensuring accessibility for subsequent workflow steps.

## Conclusion:

The **"AI Calculation for Cost Increase Surcharges"** workflow card automates the application of surcharges based on cost increases. By leveraging AI for precision and consistency, this card eliminates manual calculations, enhances efficiency, and supports accurate cost management in automated workflows.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.docbits.com/administration-and-setup/workflow/cards-overview/then/action/ai-calculation-for-cost-increase-surcharges.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
