I need a formula to calculate turn-around-time of assignments. If the assignment is completed, the following formula works. However, if there is no completion date, I get a zero when what I want is the number of days between the assignment date and the current date.
if IsNull ({ALL_ASSIGNMENTS.Date Completed}) then (currentdate - {ALL_ASSIGNMENTS.Date Assigned}) else
({ALL_ASSIGNMENTS.Date Completed} - {ALL_ASSIGNMENTS.Date Assigned})
if IsNull ({ALL_ASSIGNMENTS.Date Completed}) then (currentdate - {ALL_ASSIGNMENTS.Date Assigned}) else
({ALL_ASSIGNMENTS.Date Completed} - {ALL_ASSIGNMENTS.Date Assigned})