totdat means “until”. Starts a sub-clause and sends its verb to the very end.
Subordinating · Onderschikkend
Wacht hier totdat ik terugkom.
Wait here until I come back.
Ze bleef totdat het feest voorbij was.
She stayed until the party was over.
Drag scrambled words into the right Dutch order and master inversion and the verb-final rule.