Added an event for creating events based on leave time