Why calculations are not working in the form?