Length of wire to calculate its power losses
Yes, you need to consider both the supply and return line losses when calculating the total. You’d determine that from your wire unit resistance (ohms/m), multiply that by distance, and double it to get each direction’s resistance losses to get the total.