select uid, max(datediff(days_next, start_time) + 1) as days_window, round(count(start_time) * max(datediff(days_next, start_time) + 1) / (datediff(max(start_time), min(start_time)) + ...