I'm trying to calculate the number of days and hours between two date fields. It looks like many are calculating correctly, but there are some that are showing days and then negative hours. Can anyone help spot why I'm getting those negative numbers?
Source data and workflow attached.
Thanks!!
Solved! Go to Solution.
Use this formula on expression [Display Diff]
TOSTRING(FLOOR(TONUMBER([HoursDiff] / 24)))
+' days '
+ TOSTRING(TONUMBER(MOD([HoursDiff], 24)))
+ ' hours'
If that works for you, you can remove the [Days Diff] and [Hours Only] expressions.
Thank you. Worked like a charm.
User | Count |
---|---|
19 | |
15 | |
13 | |
9 | |
8 |