I went to my country for a year then was on an F1 visa for 8 years for grad school during which i went to my home country for 2 months/year for 8years.
While on F1 visa I went to my home country for 2 months/year for 8years.