When you use the apostrophe with “its”, this means “it is” or “it has”.
Incorrect: When its time to go, I’ll tell you.
Correct: When it’s time to go, I’ll tell you.
When you do not use the apostrophe, this means “belonging to it”.
Incorrect: It’s nose is bloody. (referring to an animal)
Correct: Its nose is bloody.