Added event creation based on leave time
Tweaked the new create event method to work for months that have less than 31 days