Clauses of time: dum "while, until", ubi and quando "when", quoties "whenever", quamdiu "as long as", and postquam, antequam, priusquam.
dum + present indicative means "while", even in a past context: dum vitam agendo conterunt "while they wear out their lives in activity". dum + subjunctive means "until" (waiting for something) or "provided that" (also dummodo).
ubi "when" (also "where"), quando "when", quoties "as often as, whenever", quamdiu "as long as", simul ac "as soon as" take the indicative when they state a fact.
A future perfect in such a clause is translated with an English present or perfect: ubi corpore soluta fuerit "when it has been set free from the body".
The same words also ask questions. After memento, scio, video and similar verbs, quamdiu, quoties, quando with the subjunctive start an indirect question, "how long, how often, when": Memento, quamdiu ista distuleris "remember how long you have put these things off".