You need to detect when the day becomes 4 rather than when the day is 4
See the StateChangeDetection example in the IDE