How do you calculate diameter of a copper wire conductor and how do we calculate resistance of a copper wire conductor of a particaular length?

You go to the NEC and look at the chart for developed length and the ambient temperature and the load factor and if it solid or stranded wire as stranded allows for more voltage