3 years minimum from any foreclosure or chapter 7 bankruptcy for FHA loans with 3.5% down, but you need to have some credit rebuilt and no late payments.
For conventional financing, you will need to wait 7 years.
I would suggest that you contact a mortgage officer and discuss the best steps to take to get yourself in the best possible position to be able to get a mortgage.
highly recommend Lori Demma of ct home mortgage. 860 712 7355