Forgot to take it on time 😳🔫

So I've been on the pill for almost 3 weeks now and I usually take it in the morning between 8:30 and 9 always ... 
Today I overslept and I took it at 9:55 .. 
So I was just wondering how does this whole thing work ?? Can I have sex or not and of not for how long without protection ?? And it's the time that I usually take it between 8:30 and 9 correct ? Or does it have to be at some time on the dot??