Help with outline

Hello,
What’s the easiest way to calculate the length of the red line?