Complex sentence: When that job ended, he took a job as a janitor at the University of Calgary in Alberta for a few months, before becoming writer-in-residence there.
Split into simpler sentences: When that job ended, he took a job as a janitor. At the University of Calgary in Alberta for a few months, before becoming writer-in-residence there.