when / before / after / until + [subject] + [verb], [main sentence]
[main sentence] + when / before / after / until + [subject] + [verb]
These words start a time clause: a part of the sentence that says when the main action happens.
The time clause can come first or second. When it comes first, put a comma after it.
When the sentence is about the future, the time clause still takes the present simple, not will. Will goes in the main part only.
After before and after you can also use a verb with -ing, with no subject, when the subject is the same.
Until says that something goes on up to a time. By says that something happens at or before a time.