How to Calculate Angles?

Depends on what you want to calculate.If you are asking about angle calculation for right triangles, it is : sin(x) = opposite/hypotenuse,cos(x)= adjacent/hypotenuse and tan(x) = opposite/adjacent.And for calculating the critical angle, take the inverse-sine of the ratio of indices of refraction.