adding ending time