Calculation field is not calculating properly