Time setting and withdrawal of selection

Regarding your first query:

You could do this through the once() as outlined in the post discussed previously:

Regarding your second query:

You could go through the trigger as outlined in the post discussed previously: