its adding 5 days to [Actual Ship Date] and comparing it with [Request Date] by taking the difference between them. this is then checked against condition >-8 to see if resultant value (ie [Actual Ship Date] + 5 days) is lagging behind [Request Date] by 8 days or more
------------------------------------------------------------------------------------------------------ SQL Server MVP http://visakhm.blogspot.com/