The problem is that the comparing DINTs with TIMEs isnt allowed in LAD or FBD when typechecking is on (and it SHOULD be on !).
Do it in STL.
There is no typechecking in STL, so you can do it with no problems.
Here is how to:
Create the compare network in LAD as normal, and specify two DINTs for the compare block.
Switch to STL and exchange one of the DINTs for the TIME variable.
When switching back to LAD, the "offending" rung will remain in STL.