Calculated fields are not longer giving the right results in version 4 (but were always correct in version 3)