Need help with @Adjust

I will use this an a agent, i will remove documents that older than 10 minutes from @Now.The field mailDate creates when you save the document for the first time. I use @Now in that field.

years:=0;

months:=0;

days:=0;

hours:=0;

minutes:=10;

seconds:=0;

tmp := @Adjust( mailDate ; years ; months ; days ; hours ; minutes ; seconds);

@If((tmp < @Now);@DeleteDocument;“”);

Subject: Need help with @Adjust

so is there a problem or are you asking if this is correct? If there is a problem pls explain. Otherwise, your code looks fine to me at first glance.

Subject: RE: Need help with @Adjust

I will only delete document if they been there more than 10 minutes, the agent runs every 5 minutes so it’s not work the way a want.