How to calculate mod. The resulting remainder is the check digit.