# NFE-1218

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

> Rejeição: Valor da CBS para operação fora de áreas ou regimes incentivado difere do calculado [nItem: …] (vTribRegCBS …).

- 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($cbs/nfe:gALCZFMCBS) or abs(br:dec($cbs/nfe:gALCZFMCBS/nfe:vTribRegCBS) - round($vBC * br:dec($cbs/nfe:gALCZFMCBS/nfe:pAliqEfetRegCBS) div 100, 2)) le 0.01`

In English: vTribRegCBS of gALCZFMCBS is not vBC × pAliqEfetRegCBS (R$ 0.01 tolerance).

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