# aligned-ibrp-054

Source: https://xmlvalid.com/rules/aligned-ibrp-054

> Allowance amount (ibt-092, ibt-136) must equal base amount (ibt-093, ibt-137) * percentage (ibt-194, ibt-138) /100 if base amount and percentage exists.

- Level: error
- Rule sets: PINT A-NZ rules (Australia and New Zealand) 1.1.3
- Context: `cac:AllowanceCharge[cbc:ChargeIndicator = false()]`
- Test: `not(cbc:MultiplierFactorNumeric and cbc:BaseAmount) or u:slack(if (cbc:Amount) then cbc:Amount else 0, (xs:decimal(cbc:BaseAmount) * xs:decimal(cbc:MultiplierFactorNumeric)) div 100, 0.02)`

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