Given a series of beginning time and ending time of events, this function calculates concurrency of the events at each of the data point, that is, the beginning time.