you have not used up the total 6 years, say only 5.5year for real H1b period in US(due to vacation abroad or other reason), you can get the rest of time for H4. H1B+H4 =