L1A to H1B Conversion

Please share if I have a chance to convert to H1B.

I came to US in L1A on 1/1/2017. I don’t have PERM or I140. If I got my H1B visa in Oct 2022 through outside consulting, my stay time is around 5 years and 10 months,

Will clock reset and start as day 1 when I start working in H1B? Or does it continue because H1B max out by 6 years.

The time spent on L1A will be counted as part of H1B unless there was a 365 days gap to reset the clock.