Here is an example
If you run out over 200 feet of wire for the job in hand, you should jump up a wire size in order to have
sufficient voltage at the other end. For example. Let's say you are going to wire and outbuilding for your workshop and you need only 120 volt receptacles at the shop end to run your power tools. Power tools run at the nominal voltage of 120 volts, but they operate within a range, say 108 to 128. This allows for how close your are to your distribution companies source. I don't know what your starting voltage is so that's why the rule of thumb. To your outbuilding you only need #12 to carry 20 amps for your tools and lights etc. If you have to exceed that distance, then you would jump up to #10 in order to have
sufficient voltage at the other end. If you are starting at 115 volts at your house, and are running 100 feet, I would still up the wire size. You can't go wrong by going one size bigger on your wire. When in doubt, always consult a qualified electrician.
The formula for voltage drop is Vd=KIL/CSA where Vd stands for voltage drop, K stands for the resistivity factor of the material [I think copper is around 7 and aluminum 11], I is the current in Amperes, L is the round trip length of conductor, CSA is cross-sectional area of the conductor in circular mils