The banks are free to use whatever criteria they want. The foreclosure is when the foreclosure was. If you wanted to walk away with impunity, you should have done so before the bankruptcy.