Calculation of form fields is displaying wrong number