# F-LIB381

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

> Invalid VAT TaxAmount - When TaxCategory/ID are 'StandardRated' and TaxableAmount > 0 (…) TaxAmount can't be '(…)' unless calculated vat '(…)' are less then 0.005

- Level: error
- Rule sets: OIOUBL 2.1 Invoice rules (Denmark) 1.17.2, OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2, OIOUBL 2.1 Reminder rules (Denmark) 1.17.2
- Test: `cac:TaxCategory/cbc:ID = 'StandardRated' and xs:decimal(cbc:TaxableAmount) > 0 and xs:decimal(cbc:TaxAmount) = 0 and xs:decimal($CalculatedVat) >= 0.005`

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