Calculation widget is not working correctly in the form