Calculated field value based on conditions not working properly on my form.