You are considered a resident alien if you met one of two tests for the calendar year.
The first test is the "green card test." If at any time during the calendar year you were a lawful permanent resident of the United States according to the immigration laws, and this status has not been rescinded or administratively or judicially determined to have been abandoned, you are considered to have met the green card test.
The second test is the "substantial presence test". For the purposes of this test, the term United Stated includes the following areas:
All 50 states and the District of Columbia.
The territorial waters of the United States.
The seabed and subsoil of those submarine areas that are adjacent to U.S. territorial waters and over which the United States has exclusive rights under international law to explore and exploit natural resources.
The term does not include U.S. possessions and territories or U.S. airspace.
Any resident has to pay tax on income received on a global basis.
The tax rate is in this web-site.
http://www.irs.gov/formspubs/article/0,,id=164272,00.html