Advice needed please

I have to switch to a new birth control m because my old one is giving me crazy side affects. My question is how long will it take for my body to be protected after I start the new Bc?