Hello. I setup the below formula in Table Transformer to calculate the difference between two date fields. It works for the most part, but for some reason the top piece of the formula in bold outputs a result of one additional day for some results? Would someone be able to help modify the formula in table transformer so the calculations are correct?
CASE
WHEN T1.'Due Date' IS NOT NULL AND DATEDIFF(day,T1.'Resolved',T1.'Due Date') < -1
THEN FORMATWIKI("{cell:align=center; textColor=#cc1010}" + ROUND(DATEDIFF(day,T1.'Resolved',T1.'Due Date')) + "{cell}")
WHEN T1.'Due Date' IS NOT NULL AND DATEDIFF(day,T1.'Resolved',T1.'Due') > -1
THEN FORMATWIKI("{cell:align=center; textColor=#008000}" + ROUND(DATEDIFF(day,T1.'Resolved',T1.'Due Date')) + "{cell}")
END AS 'Time Between Due and Resolved'