6 years of stay in US on H1B but stayed 1 year out of US in total. Would it reset my counter for another 6 yr?

Hello, I will be completing my 6 years of stay(excluding #of days I was out of US) on H1B in Oct 2017, however in these 6 years stay; I have stayed out of states for 1 year in total (if we sum up total # of days I was on vacation or days I was working out from US). Would it qualify to apply for another term of 6 years? if yes, is it possible to apply for new term without leaving US?