this is a calculator I did in maya just copy the .py code into your script editor inside maya and run it!