BISERVER-8578 - computing correct value for Repeats End By. Might not work with complex triggers

BISERVER-8578 - computing correct value for Repeats End By. Might not work with complex triggers