The six-month rule
Many countries refuse entry if your passport expires less than six months after your arrival date. Check the date before you book, not the day before you leave.
Give yourself a margin
Renewal times vary over the year. Sezam can remind you six months before your passport expires.