Signal is valid only a defined period of time

 

Is it so difficult?

I thought about the following opinion:

I add to the actual time the number of hours, if the relativ max/min is reached.

Is there an easier way?