can forms have totals?

I want to add to a form a section that asks people for amounts and then totals it, is that possible?

something like:

blue widgets needed - #

red widgets needed - #

green widgets needed - #

Total widgets = # blue+# red+# green

Answers