Ask H&H: time allowed in eventing

eventingnew.jpg
(Image credit: credits-unknown)

Q: Having just relived the Olympic eventing competition on DVD, I would like to know how the time allowed for the cross-country and show jumping elements are determined.

It was evident that the time was tight in both phases and I understand it was altered in the cross-country. Can you explain this?