Fixed an issue while computing the interarrival time