UDF to convert hexadecimal to interger