51- or 52-k∙ft would very likely be the length for voltage-drop calculations—it is a series loop regardless of cable route.
I'll bet that it's far more a regulatory than an engineering issue.
Some text states, "...8 AWG, 5,000-volt cable will satisfy most operational requirements. No. 6 AWG, 5,000-volt cable should be used for long “homeruns” or with 20 ampere circuits." BUT I HAVE ABSOLUTELY NO CLUE IF THAT APPLIES TO YOUR INSTALLATION. WHAT DOES THE DESIGNING REGISTERED PROFESSIONAL ENGINEER SAY?