How the GS1 check digit calculation works
Enter every digit except the final check digit. The GS1 algorithm works from right to left, alternately multiplies digits by three and one, adds the results, and selects the digit needed to reach the next multiple of ten.