From start to finish, foreclosure can take many months. The process ends with an auction sale and a demand telling the homeowner to leave the property. The notice sets out how long you have to leave, typically between five and 30 days.