Sorry, but I got something like -15 when I tried to calculate the tangent of 50 degrees.
I used this code to get to it:
pi = 4 * Atn(1)
a = tan(50) ' = -0.2719 radians
b = a * (180/pi)
Could you please tell me what I'm doing wrong?