The general rule is that you must be continuously present in the United States for at least five years prior to filing for your citizenship. There are exceptions to this rule. You should contact an immigration attorney to go over the specific details of your situation.
This answer is for informational purposes only. It does not establish an attorney client relationship.
The rule is that you must have been physically present in the US for a total of at least half of the last 4 years and nine months. You do the math.
Kindly be advised that the answer above is only general in nature cannot be construed as legal advice, given that not enough facts are known. It is your responsibility to retain a lawyer to analyze the facts specific to your particular situation in order to give you specific advice. Specific answers will require cognizance of all pertinent facts about your case. Any answers offered on Avvo are of a general nature only, and are not meant to create an attorney-client relationship.
As a general rule, you have to have been physically present in the U.S. for half of the time for the applicable "lookback" period. If you need additional assistance, you should retain an immigration lawyer. For all the times in your life when you may possibly encounter the need to hire a lawyer, immigration issues should be among the top reasons for doing so. If you apply for naturalization and wind up in removal proceedings (as happens to many people), all of your other issues will become unimportant in a flash. Good luck to you.
*IMPORTANT: Do not rely on Attorney Murray's response as the information provided on this website is NOT legal advice nor is it a substitute for legal advice which requires a consultation with a lawyer. Attorney Murray's response does NOT create an attorney-client relationship. If you have any specific questions concerning a legal issue, you should consult a lawyer. You should never delay seeking legal advice, disregard legal advice, or commence or discontinue any legal action because of information on a Q&A website such as Avvo. Attorney Murray's response was generated without conducting a full inquiry as would occur during an attorney-client consultation. It is likely that the response above may be made less accurate, or become entirely inaccurate, as you, i.e. the questioner, disclose additional facts that should only be discussed during a private attorney-client consultation. I strongly recommend that you consult an attorney who is licensed to practice law in your state (or, in the case of immigration law, an attorney in ANY state), whereupon all relevant facts will be discussed. All responses posted on Avvo are intended as general information for the education of the public, and not for any specific individual. New Jersey residents: NO ASPECT OF THIS ADVERTISEMENT HAS BEEN APPROVED BY THE SUPREME COURT OF NEW JERSEY. The selection methodology for the SuperLawyers' "Rising Stars" awards is set forth at length at this website: http://www.superlawyers.com/about/selection_process.html.
Generally, you need to show that you were present in the U.S. for at least 30 months of the 60 months prior to filing.
This answer is of a general nature and does not in any way create an attorney-client relationship.