Calculate the last digit from the first 17 ID numbers