The magnitude of a displacement is the straight-line distance from the beginning point to the end point, regardless of the path that was taken to get there.
Juan's displacement is the straight-line distance from the bottom of the staircase to the top.