New function to calculate summary of activity for closed tickets per company