Under Act AC21, a H1B can be extended beyond 6 yrs if :
1. Applicant's labor for Employment based green card purpose is pending for more then 365 days. (one year base)
2. Applicant's petition for I-140 is approved under employment based green card and AOS/485 is pending due to Visa numbers unavailability. (3 year base I believe)