Using a html calculation in a form