Conditional calculation in the form when fields are filled