You can create a custom aggregate function which will be responsible to perform the calculations with the TimeSpan values. I am also attaching a sample implementation for summing the minutes. A similar approach can be utilized to make other aggregations as well. I am also attaching a screenshot showing the result on my end.
I hope this information was useful. Let me know if you have other questions.