Facing foreclosure: When must I move out?

Answer depends on whether home sells to new party

DEAR BENNY: I am one of the unfortunate who has to deal with eventual foreclosure. Can you tell me how long I can remain in my home until legally having to vacate? –Constance