Hi,
I used the local function as originally suggested and it did worked, although not perfectly. When I tested it to calculate different angles I noticed that it wouldn't return a value in all cases, especially if the angle should be 90 degrees.
For example the equation is T= dFSin(A)
T=Torque (Nm)
d=Distance (m)
F=Force (N)
A=Angle (Degrees)
So to calculate the angle I use the following code in the module:

This code in the form:
Angle = (ASin(Torque / (Distance * Force))) * (180 / pi) '*180/pi to convert Radians into Degrees.
When I test with Distance=2, Force=2000 & Torque=2000, I get the correct answer Angle=30. But,
When I input Distance=2, Force=2000 & Torque=4000, I should get the answer Angle=90, but I don't, it's blank.
I've also tried your method but unfortunately it didn't work for me:
