How long did it take for your kid to pee AND POOP in the potty?

I have a newly 3 year old. In just under 3 weeks, I got him to pee and poop in the potty!!! I heard a lot of the time, it takes a lot longer for kids to poop in the potty once they figure out how to pee in the potty. So I'm extremely excited and proud. It took a lot of patience and perseverance.