Set the range and alarm for calendar event