Large MPCNC - Longer Wiring

I am building a 5’X5’ MPCNC. I am going to need longer wiring than what comes with the kit (1M). I don’t know if there is a formula to get to wire length. What is the best approach to calculate wire length? What is the best approach to acquire this type of connector? Is that kind of wiring available here or is there a good place to get it?

I used CAT5e network patch cables.

You can also go to Lowe’s/Home Depot and get a roll of 4 conductor speaker wire. The speaker wire would be easier, you can just cut the cables you have now and solder a length of speaker wire in the middle. Use heat shrink to cover the connections.