Yes, I was to fast. However, to be sure that you always get the correct result, storedtime must be a datetime value, and the answer will be
Datetime()-storedtime>=1200
>Tore,
>
>>Time() - storedtime >=1200 && (20*60)
>
>I think you typed too fast, is not *that* easy <g>
>
>
>Assuming that StoredTime is allways from today, it will be more like this
>
>? Datetime() - Ctot(Dtoc(Date()) + ' ' + StoredTime) >= 20 * 60
>
>I'll guess a good estimate would be
>
>ltCurrent = Datetime()
>ldDate = Date() + iif(ttoc(ltCurrent, 2) >= StoredTime, 0, 1)
>ltCurrent - Ctot(Dtoc(ldDate) + ' ' + StoredTime) >= 20 * 60