# F-REM081

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

> The sum of AllowanceCharge/Amount elements (with ChargeIndicator='false') must equal AllowanceTotalAmount

- Level: error
- Rule sets: OIOUBL 2.1 Reminder rules (Denmark) 1.17.2
- Context: `doc:Reminder/cac:LegalMonetaryTotal`
- Test: `cbc:AllowanceTotalAmount and not(format-number(cbc:AllowanceTotalAmount,'##.00') = format-number(sum(../cac:AllowanceCharge[cbc:ChargeIndicator='false']/cbc:Amount),'##.00'))`

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