You can file a Chapter 7 Bankrupty eight years after the filing of a previous Chapter 7 filing date and six years after the filing of a previous Chapter 13 action. A Chapter 13 bankruptcy cannot be filed within two years of a previous Chapter 13 filing. You might be able to benefit from filing a Chapter 13 action immediately after getting a discharge from a Chapter 7 action (known colloquially as a Chapter 20 action) even though you will not be able to get a discharge from the subsequent Chapter 13 filing.
As an experienced bankruptcy attorney, Andrew Carroll can explain how these different options work together. If you did not receive a discharge of debt in the earlier case, then you should be able to file another bankruptcy without restrictions, in most cases.