This original spread sheet was written by Gerald Dorrington of Mechtronics back in 2008 (Thank You)
No idea where or when I came across it, but here is an example of how to take information provided and help create a Lua wizard.
By using the calculations from the spread sheet, helps to develop the Lua calculations. Gives instant feed back and troubleshooting capabilities.
Here I am passing the axis number to a function to calculate the correct column. And all based off the example lua.mcs file I'd provided earlier. Just with more functionality. Its not hard, just tedious and a process of test, test, test.