fixed event end time calculation