Need some help to convert the type of TEXT to NUMBER

i tried this code, it work but it become 0 in the dataset , i input 1133 it become 0 why ya and my code is not work for some input , can i know is that any problem in my code ? btw thanks you