bacterial infection


I just got pills for a bacterial infection (7 days, 2 a day) and then one pill for a yeast infection which I’ll take on the 8th day and it’s just one pill

Basically I want to know how soon I can have sex again!! Should I wait until after I take all the pills or can I sooner?? Thanks:)