Cogsworth Standard Work Code

The Cogsworth Standard Work Code (CSWC) is a unique numeric code that identifies Minecraft players taxed by Cogsworth.

Format
The CSWC consists of the prefix "T" indicating a Cogsworth Standard Work Code, three sets of three digits separated by dots, a hyphen "-" and a check digit.

The resulting format is T.123.456.789-K.

The check digit is calculated as

$$S = 1 + \sum_{i=1}^{i=9}id_i$$

$$K = S \mod 10$$

With


 * $$d_i$$: one of the nine digits of the work identifier (i=1 to 9) from left to right.
 * $$K$$: check digit.

The check digit is simply the remainder of the division of the sum by 10.

Example: T.157.652.779-K

The sum of products is calculated as:

$$1 + 10 + 21 + 24 + 25 + 12 + 49 + 56 + 81 = 279$$

Below is the calculation of the final check digit.

$$279 \div 10 = 27\;\mathrm{ remainder }\;9$$

The formula above gives the check digit of 9 and the completed CSWC is T.157.652.779-9.