finish every thing before calculating the time overlap