How prices and summary totals are calculated

You are here: Home » Resources » How prices and summary totals are calculated

Product’s prices:

The total price of each product is calculated as follows:

A) If the field price is provided:

total price=price*units * {{(100-discount)}/100}

B) If the field price is not provided:

total price= price without vat * (1 + vat/100) * units * {(100-discount)/100}

 

Summary totals:

A) If you do not provide subtotal, nor taxes nor total

Subtotal:

The sum of all total prices, all of them as calculated above.

subtotal = sum{i=1}{n}{total price_{i}}

Taxes:

If the field price is provided:

taxes = sum{i=1}{n}{price_{i}}*{{{vat_{i}}/100}/{1 + {vat_{i}}/100}}*{units_{i}}

If the field price is not provided:

taxes = sum{i=1}{n}{price without vat_{i}}*({vat_{i}}/100)*{Units_{i}}

If, let’s say, price is provided for product A and price without vat is provided for product B, then the final taxes will be calculated by the combination of the two methods.

Total:

total=subtotal + shipping

 

B) If you provide subtotal, but not taxes nor total

Subtotal:

Exactly the value that you provide, with two decimal places.

Taxes:

As in case A)

Total:

As in case A)

 

 

C) If you provide taxes, but not subtotal nor total

Subtotal:

As in case A)

Taxes:

Exactly the value that you provide, with two decimal places.

Total:

As in case A)

 

D) If you provide total, but not subtotal nor taxes

Subtotal:

As in case A)

Taxes:

As in case A)

Total:

Exactly the value that you provide, with two decimal places.

 

E) If you provide subtotal and taxes, but not total

Subtotal:

Exactly the value that you provide, with two decimal places.

Taxes:

Exactly the value that you provide, with two decimal places.

Total:

As in case A)

 

F) If you provide subtotal and total, but not taxes

Subtotal:

Exactly the value that you provide, with two decimal places.

Taxes:

As in case A)

Total:

Exactly the value that you provide, with two decimal places.

 

G) If you provide total and taxes, but not subtotal

Subtotal:

As in case A)

Taxes:

Exactly the value that you provide, with two decimal places.

Total:

Exactly the value that you provide, with two decimal places.

 

H) If you provide subtotal, taxes and total

Subtotal:

Exactly the value that you provide, with two decimal places.

Taxes:

Exactly the value that you provide, with two decimal places.

Total:

Exactly the value that you provide, with two decimal places.