Yes I understand, this is how I worked. The thing is it will calculate the avg. duration fpr all users for a day, and the customer wants to see "during the last 30 days, what was the daily avg time student spent for a course.
BTW, are you also a partner of Mixpanel?