Is it still effective ?? BC PILL??

Ok so I’ve heard that antibiotics and diarrhea can affect the pill.

So if you take an antibiotic pill or get diarrhea around the same window time/hour you took your pill, it will affect the pill correct?

But it won’t affect it if you take an antibiotic or get diarrhea like 6-7 hours u took the pill?

Just a thought.