function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rahul Luthra 1Rahul Luthra 1 

Calculate Wait Time Of Chats in Queue

I am trying to calculate wait time of a chat in a queue. I know there is standard field which Salesforce offers but it is showing a wired result.

I have written a below formula to calculate the wait time in a custom field, still no luck.

IF( NOT(ISBLANK( StartTime )) && NOT(ISBLANK( EndTime )) 
, (EndTime - StartTime) *24*60 

Kindly suggest.

User-added imageRegards,
Khan AnasKhan Anas (Salesforce Developers) 
Hi Rahul,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas