This macro compute the check digits.