Why calculation is not working in my form?