Added some comparison operations on the intervals for building rules on the event list