https://senseeducation.1b.app/app/dashboard/look here for an example, for example, on the "Admin" employee - he has a process
https://senseeducation.1b.app/299/ where there are incoming messages from the client and outgoing to the client (we counted incoming / outgoing in the corresponding columns based on the comments of the desired type)
I also removed the number of hours for which to count processes without a response so that you can see that the calculation is taking place - the specified process is in the desired status and the last message for it is from the client.
the average response speed is calculated as the difference between the incoming message (creating a task may initially be a consequence of the incoming message) and outgoing - and the average is displayed in a readable form (the last message of the client without a response is not taken into account, because there will be a strong distortion between real answers).