there is no required length according to the NEC

I would check with the local AHJ to see what there codes are