how soon after antibiotics is your birth control affective again ??

i got a kidney infection and had to take antibiotics . i’m also on birth control which the dr told me it would affect it . it’s been two weeks since i stopped them . i’ve also had a period after i stopped them . when am i protected again ??