Checksum calculator for ISO 6346 format serial numbers