The image shows the OnAlarm dialog box with the following settings under its General tab and Annotations tab, which allow you to either a For time or an Until time:

For both For and Until settings, in addition to specifying a time using the controls just described, you can define an expression by selecting the Expression option and entering it into the Expression field. Alternatively, you can click the XPath Expression Builder to create an expression.