Calculated value is reset to 0 after the form is submitted.