taking an antibiotic does not make an oral contraceptive totally ineffective but it can (in some cases) reduce the efficacy so it is wise to use a secondary method (condoms) while on antibiotics. there is really no set time that this "reduced efficacy" could occur.
how long after taking cefdinir does birth control stop being effective?