%>
NDAY(C,O,3) AND
UPNDAY(C,3) AND
O>REF(O,1) AND
O<REF(C,1) AND
REF(O,1)>REF(O,2) AND
REF(O,1)<REF(C,2);