A green card is for living in the U.S., for all intents and purposes you have not done that. In order to qualify for citizenship, it's like everyone else said, 4 years and one day- BUT you MUST spend the majority those 4 years here in the U.S., no more long absences. Best of luck.