# 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="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FpIdmGfpzfW2IKZb6sGrn%2FScreenshot%202025-03-08%20at%2014.50.55.png?alt=media&#x26;token=b99dbf2a-6cc3-4ebd-81a0-0e260cfbf335" 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="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FQA1Nql4mlWCHDKKWvaH4%2Fsimplio3d_pricing_formula.png?alt=media&#x26;token=213b9bab-5321-490e-bdca-d91bd931216f" alt=""><figcaption><p>Typical example of a pricing formula using variables</p></figcaption></figure>

<br>
