You should file a patent application as soon as possible, and before disclosing your invention to the public. If you don’t file a patent application before disclosing your invention to the public, you must file a patent application within 12 months after disclosing your invention to the public.