# Pricing formula

The platform has a versatile way of pricing for configurators and one of its key features is the ability to enter a pricing formula that uses basic mathematical calculation and variables.

<figure><img src="/files/cQQUgUO9XQIToiLi3jQu" alt=""><figcaption><p>Pricing Formula</p></figcaption></figure>

### Examples

1. **Teacup Configurator**

Let's say we have a Teacup configurator coming in 4 colors: White, Gray, Red and Blue. Each color will come with a different price.

In this situation we can start with a basic price, let's say for the White one the <mark style="color:red;">**@base\_price**</mark> is 20$.

Base Price = 20$.

Price the options by using <mark style="color:green;">**@price\_options**</mark> variable. For each variant we have a price.

&#x20; White = 0$

&#x20; Gray = 2$

&#x20; Red = 4$

&#x20; Blue = 6$

All of the above can go in the <mark style="color:purple;">**@total\_price**</mark> built in variable **by default**.

For a red teacup the **Total is $24** (base price 20 + red color 4). We don’t have Variables here and the formula is basic.

2. **Table Configurator**

This time we have a table coming in 2 colors and able to change size **Width** and **Depth**.

<mark style="color:red;">**@base\_price**</mark> = 120$

But this time, I want to create a more complex price formula therefore, I will use variables here for both colors and size.

**Add Variables**

<mark style="color:blue;">**@colors**</mark> (@*price\_variable*) - ‘from options’ variable type

White - $40

Green - $48

<mark style="color:blue;">**@size**</mark> - (*@price\_variable*) ‘for options’ variable type

Width - $2 (size\_number\*$2) i.e. 200cm x $2

Length - $2 (size\_number\*$2) i.e. 160cm x $2

<mark style="color:blue;">**@sales\_tax**</mark> - (*@price\_variable*) ‘custom’ type of variable

Price - 0.01 (10%)

Now, I build my price formula from variables. First, I remove the default variable <mark style="color:purple;">**@total\_price**</mark>.

I add:

(<mark style="color:red;">**@basic\_price**</mark> + <mark style="color:green;">**@colors**</mark> +<mark style="color:blue;">**@size**</mark>) + ((@<mark style="color:red;">**basic\_price**</mark> + <mark style="color:green;">**@colors**</mark> +<mark style="color:blue;">**@size**</mark>)\*<mark style="color:blue;">**@sales\_tax**</mark>)

Based on the above formula, the configurator will calculate the total price.

<figure><img src="/files/IRpWEm5gXMnTf5IOYO1R" alt=""><figcaption><p>Typical example of a pricing formula using variables</p></figcaption></figure>

<br>


---

# 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.simplio3d.com/learning-the-app/products/pricing/pricing-formula.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.
