I assume this is a square box.Which is the longest line?
To make things simpler, without loss of generality, let this be a unit box, that is, let its side have length one.
Observe how the lines take circular segment shapes on the faces of the box. So, the lines can be described in terms of a sum of quarter circles. Mathematically,
To me, it looks like the blue line has
By the way, bro:
Spoiler: