Why the max function in the Form Calculation widget not working?