Why calculation is not showing correctly in forms?