The math as newt wrote works. As you wrote it is incorrect, you added some parenthesis that weren't there.
Edit:
Well, since I posted you edited your post or some nonsense like that. So now the formula is correct and the numbers look to be in the range you'd expect. If you want to be more sure of the formula then I recommend reading up on converting polar coordinates to Cartesian coordinates.