Filing deadlines can vary in each state based on either the type of office or type of filing.
https://ballotpedia.org/State_and_federal_candidate_filing_deadlines_for_2018
https://ballotpedia.org/State_and_federal_candidate_filing_deadlines_for_2018