how to do a simple deluge script - please help

how to do a simple deluge script - please help

Hello,

i created a form, but im not too sure how to configure a deluge script so the data can be calculated automatic.

in the form, the user can enter various numerical and text information such as dimensions, weight, country and so on.

here is what i want to do

i want to be able to calculate the cost of shipment based on the data that customers input.

for example:

if the customer is sending to "country x" the rate per pound is x amount of dollars.
if the customer is sending to "country y" the rate per pound is y amount of dollars.

please not that all the countries are listed in a drop box within the form.

now it gets more tricky, the "chargeable weight" is calculated in the following way.

if the "volume weight" is > than the net weight, the volume weight is the one use
else, the net weight is the one use for rate calculations.


i already created a formula to calculate the volume weight based on the dimensions (length x height x width) that the customer inputs.

now it gets a little more tricky, based on the country the client chooses i want a message to be created.

for example, if the client is shipping to "country y" the message will say " the estimated delivery time to "country y" is x amount of days.


and the ultimate challenge will be to be able to send an email to the client after the information on the form is enter with the shipping quote.


ok....i know is sounds complicated, but im sure you can help me!

thanks

Corona