If I'm understanding the questions correctly, you are asking how many spaces we should shift over when \t is in the code?
As a general rule, each tab shifts the cursor to after the next column that is a multiple of 8.
So if the syntax was, "Hi\tHello", the output would be,
Hi Hello
Hi(6 spaces)Hello
But if the syntax was, say, "Hello\tHi", the output would be,
Hello Hi
Hello(3 spaces)Hi
In each case, the "H" of the second word starts after the 8th column, but the spaces in between it and the word before it are different.
For simple cases like this, think of it like an equation, #ofSpaces = (8 - #ofCharactersBefore\t).
Hope this helps!