By law, H-2A workers must leave the country at the end of their contract period and most such workers are in the United States for only two to five months.
By law, H-2A workers can stay in the country as much as they like.