Drools Experts:<br /><br />I have a list of the following fact objects sent to my rules:<br /><br />CrewSegment<br />  Date startDate<br />  Date endDate<br />  double crewHours<br />  int personId<br /><br />along with an object to designate seats:<br /><br />SeatAssignment<br />  int seatId<br />  int personId<br /><br />Here is the rule I want to enforce in English: No crew member (uniquely identified by personId) can have more than 56 hours of total crewHours in any 7 day period.  The rule I&#39;ve written so far is:<br /><br />when<br />    $s : SeatAssignment ( )<br />    $total : Number( doubleValue &gt; 56 ) <br />               from accumulate( CrewSegment( personId == $s.personId, $crewHours : crewHours ),<br />                                sum( $crewHours ) )<br /><br />This rule nicely catches any instance where more than 56 hours are committed by a person, but does not limit the time period to 7 days.<br /><br />How do I limit the search to be sure that it is 56 hours WITHIN 7 days, and not just 56 hours total over ANY time period?<br /><br />Thanks in advance for any help you can provide!!!<br /><br />Bill