H1B work permission related question

Hello friends,
H1B gives permission to work in US for 3 years as per my understanding. When does that 3 years cycle period starts ? when we get visa stamping ? or when we enter US ?

The day you start your job. Any days you are out of the US are not counted in the total of 6 years term.