This mod is not as easy as it looks! I need some help to brainstorm the solution. Specifically, any suggestions as to which classes/functions to insert the logic, and how to alter the template.

Here is the requirements doc. Any help is appreciated:
There are two unviewed fields in this calendar, namely Itinerary Number and Travel Type. Here is the logic:
1. This will only display in 2 week view in a certain calendar (Manager calendar). All events corresponding to the same Itinerary Number will display in the same row in the calendar. Or, we could color-code each itinerary.
2. If Travel Type is Air, insert two characters "TD" [Travel Day] before -and- after the full Itinerary for the Leaders to travel to and from event (Leaders are two group leaders who travel to events). If Travel Type is Car, insert a one day spacer before the full Itinerary for the same reason. If Travel Type is Local, leave Itinerary spacing alone.
3. If there is a gap in the schedule for a pair of Leaders for any given Itinerary Number, insert a RD (Rest Day) for
that day.
4. Leaders (either one or both) may not be assigned when
events are scheduled; please assure that space is held in template so that "unassigned" events are easily spotted.
many thanks in advance,
Chris