antibiotics and the pill

General question: I just finished taking oral antibiotics for an ear infection. I am on the pill, and I take it everyday at the same time. I know that antibiotics can interfere with the effectiveness of the pill. How long after finishing the antibiotic is it safe to have sex?