You have added the calculation scripts via Designer, but the script is actually being executed by Acrobat plugin when you render the form as PDF in Designer. Also, you would need to optimize your script, as Acrobat can only execute the given scripts in the PDF.