# aligned-ibrp-055

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

> Charge amount (ibt-099, ibt-141) must equal base amount (ibt-100, ibt-142) * percentage (ibt-101, ibt-143) /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 = true()]`
- 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
