The Bankruptcy Code requires you to complete two counseling courses for Chapter 7 and Chapter 13 bankruptcy.

The 1st credit counseling course must be completed within 180 days before you file (in nearly all cases), and the 2nd debtor education course must be completed post-petition.