You will need to set up hidden fields to old the values.If you have a submit/save button place the script behind the click event of that button.If you want to calculate as the user selects from the drop down then put the script on the calculate event of the hidden field.The script is long winded and...