since everyone on here is so hard up on everything being 100% code compliant, lets get it correct.
Size wire based on 310.15b16 for conductors in a raceway (almost all except triplex, or conductors in free air)
Derate it based on ambiant temperature, what the lugs your terminating on are...