There is no waiting period before you file for disability. You are eligible to file an application for SSD the day after you stop working. If you are still working and considering filing for disability, it is best to contact an attorney to discuss how to proceed.