#12's on 20A CB longer than a nipple:

I think the answer is 9 for 1/2"-4"

With an EG then you could then the answer is 10 for 3/4" & up.

It's too bad there is no adjustment for raceway size when it comes to derating.