Form Calculator is not calcuating values correctly