# NFE-1031

Source: https://xmlvalid.com/rules/NFE-1031

> Rejeição: Valor do Diferimento da UF difere do calculado [nItem: …] (vDif …, calculado …).

- Level: error
- Rule sets: SEFAZ authorisation rules of NF-e 4.00 MOC 7.0 Anexo I, NTs up to 2026.010
- Context: `nfe:infNFe/nfe:det/nfe:imposto/nfe:IBSCBS/nfe:gIBSCBS`
- Test: `not($uf/nfe:gDif) or abs(br:dec($uf/nfe:gDif/nfe:vDif) - round($vBC * $rUF div 100 * br:dec($uf/nfe:gDif/nfe:pDif) div 100, 2)) le 0.01`

In English: The deferred state IBS (gIBSUF/gDif/vDif) is not vBC × the state IBS rate (or pAliqEfet) × pDif (R$ 0.01 tolerance).

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