I have to calculate a checksum digit for a barcode of type Code128 in C#, similar to this post: https://support.idautomation.com/Code-128/Manually-calculate-check-digit-for-Code