From my understanding of CPD's and most danios/rasbora's...they are continual spawners. Meaning that they basically breed non stop, assuming conditions are right, and lay a small number of eggs every day. So i would think your plan sounds good, leaving them in there for 4-5 days and then moving them back to the main tank. Although, I think you wouldnt get too many fry that way, and im not exactly sure what the "grow out" stage would be, but im guessing around 2 months? So, not a very high turn out rate, which is probably ok with what you're trying to accomplish, as im guessing you're not trying to be a commercial breeder of these, are you?
If you wanted as many fry as possible, you would want multiple 10g tanks to just continually move the breeders around in or a way to collect eggs and have a few dedicated tanks to hatch and grow out. I have seen a few different methods of this discussed, a quick internet search should give you plenty of answers.