It was after a hiker who was descending told me "1.7 miles to Whitney." So I guess that it happened somewhere approximately 0.5-1.5 miles from the peak.