You'll end after you've knit the required number of rounds with color A (I'm calling it that for simplicity's sake); then you'll start color B at the beginning of the next round.
Watch
this video and see if it helps! (Scroll down to "double knit-in join" in the section on "joining a new color yarn")