General rule of thumb: You can typically get back in to your own country with an expired passport (I have done it a few times in the UK) but you cannot leave another country with an expired passport for your home country without jumping through some extraordinary loops.