calculate ismn checksum