Calculate check digits for SEDOL, CUSIP and ISIN codes