# F-CRN073

Source: https://xmlvalid.com/rules/F-CRN073

> The sum of TaxTotal/TaxSubtotal/TaxAmount elements must equal TaxExclusiveAmount

- Level: error
- Rule sets: OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2
- Context: `doc:CreditNote/cac:LegalMonetaryTotal`
- Test: `cbc:TaxExclusiveAmount and not(format-number(cbc:TaxExclusiveAmount, '##.00') = format-number(sum(../cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount), '##.00'))`

Validate a document against these rules: https://xmlvalid.com/validate
