adding CalculateVerifierDigit function