# F-CRN074

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

> TaxInclusiveAmount is calculated incorrectly

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

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