I'm trying to track support ticket completion times. We have 3 date fields:
creation_date: Date a ticket is submitted by a client
approved_date: Date the ticket is assigned to a technician
completion_date: Date the support ticket is resolved.
We want to calculate the total ticket time, basically completion_date - creation_date. But, often tickets are submitted on a Friday and not resolved until Monday, and using DateDiff() will skew the times drastically. Similar situations occur overnight or outside of business hours. I'm less worried about random Monday holidays and such.
Has anyone written an Arcade expression to calculate this? I'm testing some but not making much progress yet. Assuming we need to use Weekday() to get the day of the work week and somehow use that to exclude weekend times? Any thoughts would be much appreciated!