The bank still must file an action for possession with the court, and you're entitled to answer the complaint and request a trial, etc. So, you can probably string things out for 30 days. But, when you lose the complaint, you could get stuck with a judgment for legal fees and costs of suit.
So, what you may want to do is contact the bank now and see whether they will let you pay rent for 30 days, or whather it takes for you to move out. Banks don't really want empty homes sitting on the books generating no revenue. They also don't want a disgruntled owner to strip the property to the bear walls, or destroy the home during the move out, so there is an interest in keeping things amicable between you.
Also, a large number of lenders are voluntarily choosing to not foreclose, because when they do, if they have other loans on properties in the same development/neighborhood, the lender must "mark to market" all of the other loans to the value of the foreclosure. This has a HUGE effect on a bank's asset valuations, and reduces its ability to borrow from the Federal Reserve.
Consequently, you may not be foreclosed on, especially if you're actively trying to sell the property as a "short sale." Point is, you have some options -- you just have to do some negotiating to see whether your lender will be willing to work with you or not.
If not, then you need to find some new digs in a hurry. But, at least you will know what's happening.