fixed eventEndTime calculation