Here's a breakdown of the Spanish:
* cuando: when
* se acabe: ends (subjunctive form of acabar)
* la escuela: school
* salimos: we leave (present tense of salir)
* temprano: early
Note: The sentence uses a subjunctive mood in "se acabe" because it expresses a hypothetical or uncertain condition.