{"section":"known-issues","requestedLocale":"en","requestedSlug":"tax-rate-calculation-does-not-consider-discount-when-applied-to-formula","locale":"en","slug":"tax-rate-calculation-does-not-consider-discount-when-applied-to-formula","path":"docs/en/known-issues/Marketing & Merchandising/tax-rate-calculation-does-not-consider-discount-when-applied-to-formula.md","branch":"main","content":"## Summary\n\nPricing is not considering a promotion with discount when we create a tax rate using the formula which sees the total Value of the order.\n\nAN example of how this looks like:\nTax rate configured as ((total + shipping) * 0.1)\n\n|||\n|-|-|\n|Subtotal|100,00|\n|Discount|10,00|\n|Shipping|20,00|\n|__Tax__|__12,00__|\n|Total|122,00|\n\nAn example of how it's supposed to look like:\nTax rate configured as ((total + shipping) * 0.1)\n\n|||\n|-|-|\n|Subtotal|100,00|\n|Discount|10,00|\n|Shipping|20,00|\n|__Tax__|__11,00__|\n|Total|121,00|\n\nThe example showing how it should look like shows that the Tax rate formula calculated the total value by taking into account the $10 discount.\n\n## Simulation\n\nCreate any promotion and a tax rate following the formula ((total + shipping) * 0.1).\nSimulate a product in the cart with this promotion and tax rate.\nThe value of the tax will be calculated based on the total value, without taking the discount into account.\n\n## Workaround\n\nThere is no workaround."}