# Calculation rules of AvaTax Brazil

Source: https://developer.avalara.com/services-calculation-en/concepts/calculation_rules/

# Calculation rules of AvaTax Brazil

The calculation process of _AvaTax Brazil_ adopts a "self-sufficient payload" that contains the identifiers necessary to point out specifically which item is being traded. Using this payload the system identifies the item and applies its correct taxation.

There are scenarios where, even with all these attributes, there is still an ambiguity that does not allow identifying with 100% precision the item being traded. To deal with these cases, we have created configurable rules that allow us to resolve this ambiguity and apply additional "decision points" to accurately point out the desired taxation.

Rules can also be used to deal with specific exceptions regarding the origin, destination, specific taxpayer, or situations arising from injunctions, special regimes, etc.

Rules have two complementary features. The first is the set of parameters and operators that allow the construction itself. The second is the association with a legal basis, that is when creating a rule the user must provide the legal basis for its application.

[Previous](/for-review-only/en/leila-paul/services-calculation-en/concepts/concepts_in_the_tax_calculation)

[Next](/for-review-only/en/leila-paul/services-calculation-en/design_experience)