The Aisyiyah Orphanage is 1km from the entrance gate of the Kraton. We see Bill's watch at their first arrival at the mat (12.20pm, Vidcap A), and again at their second time at the orphanage (12.35pm, Vidcap B). 15 minutes to the kilometre, sounds about right.
For Amani/Marcus, however, B@M says
here that their first arrival at the mat was at 11.48am, but their second arrival (and final check-in time) had Marcus' watch say 12.45pm (Vidcap C). Did they really take a full hour to walk 2km, or were they held up for something else?
Now integrating this with the departure shots for Leg 3... I've shown in the Ep3 thread that the displayed times in the episode were off by two hours, which means that Amani/Marcus actually departed at 10.32am (which jives with Marcus' watch in that scene, Vidcap D). Adding everything together,
the Leg 2 Pit Stop was, give or take a few minutes, 21h50min long.
Edited to remove blabber about times, directions and shadows, the route teams took wasn't a straight one...