Birth control and antibiotics

Hannah
I'm currently on birth control, and have been prescribed antibiotics for an ear infection. I know that antibiotics cancel out your birth control, but I was just hoping that someone could give me better information on how long it will be ineffective and things like that. Thank you!