A family of Microsoft relational database management systems designed for ease of use.
You can try something like which is accepted but I'm not sure I got the logic correct:
CASE WHEN [Completion Date] Is Null And DateDiff(Day,[Received Date],GetDate())>0 THEN DateDiff(Day,[Received Date],GetDate()) ELSE DateDiff(Day,[Received Date],[Completion Date]) END