when … comes out or leaves
Cuando salga del baño, más vale que ya no estés aquí.
When I come out of the bathroom, you'd better not be here anymore.
— Ace Ventura: Detective de Mascotas (1994)
No te preocupes; cuando salga vendrá a buscarte.
Don't worry; when he comes out, he'll come looking for you.
— La strada (1954)
Cierre la puerta cuando salga.
Close the door when you leave.
Cuando salga el viernes a la noche, entramos.
When I get out on Friday night, we go in.
Haga el favor de cerrar la puerta cuando salga.
Please close the door when you leave.
¿Sabe cuántos años tendré cuando salga de aquí?
Do you know how old I’ll be by the time I get out of here?
— Carandiru (2003)