The allowed maximum number of decimals for the Document level allowance amount (BT-92) is 2.
/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = false()]
string-length(substring-after(cbc:Amount,'.'))<=2