Added a gap time when calculating the events interval time match