How to Find Shift Between Two Signals with Cross Correlation?
Well, All in there is a simple play with the indices of the Auto Correlation Function.

Have a look at my solution for Finding Reference Audio Signal in Test Audio Signal and Cropping Accordingly.
You'll find there full MATLAB Code for the task you mention.

Enjoy...