![validation check digit validation check digit](https://i2.wp.com/lowkeytech.com/wp-content/uploads/2016/04/imei-validation-check.jpg)
Compare the calculated check digit to the last digit of the original IRD number.If the calculated check digit is 10, the IRD number is invalid.If the remainder is not 0 then subtract the remainder from 11, giving the 00 calculated check digit.To each of the base number’s eight digits a secondary weight factor is assigned.
![validation check digit validation check digit](https://tech.vlivetricks.com/wp-content/uploads/2020/08/mastercard.jpg)
If the calculated check digit is 10, continue with step 4.If the calculated check digit is in the range 0 to 9, go to step 5.If the remainder is not 0 then subtract the remainder from 11, giving the calculated check digit.If the remainder is 0 then the calculated check digit is 0. Sum together the products of the weight factors and their associated digits.To each of the base number’s eight digits a weight factor is assigned.If the resulting number is seven digits long, pad to eight digits by adding a leading zero.This step ensures that the IRD number is in the already issued range, or is in the range expected to be issued in the next 10 years. If the IRD number is 150-000-000 then the number is invalid.First, break the input into individual characteres and numbers. The check digit is calculated using this algorithm. Thus, the nationality and sex are not included in the check. The second is to validate that a check digit is calculated correctly for any complete Universal Loan Identifier (ULI) you enter. The IRD number format used by Inland Revenue is an eight or nine digit number consisting of the following parts - This is a check digit for positions 1 to 10, 14 to 20, and 22 to 43 on the second line. The first is to generate a two character check digit when you enter a Legal Entity Identifier (LEI) and loan or application ID. IR number validation - modulus 11 digit check The algorithm is based on the 'Non-Resident Withholding Tax And Resident Withholding Tax Specification Document' issues by the Inland Revenue on the 31st of March 2016.