If I understood your question correctly, what you need to do is sum all of activities' durations to get the total like this:
public TimeSpan calculateTotaltime()
{
TimeSpan total = TimeSpan.Zero;
foreach (Activity a in myData.activities)
total += a.timelength;
return total;
}
Here
total
is the sum of the durations of all the activities in your list.