adding date ranges to events