Hi hope you doing well.

Yeah, you are right. This was a typo the Int() function is correct.

I tried it again with the Stop statement like you mentioned but even then I did not got any value for a or p. I still have a value for everything else. But when I let vanish both variables the function don't work.