High-Elevating Scoring Time Frame

I have a question about High-Elevating Scoring. I understand the rules for expansion and elevating. My question is about timing of the elevation. Does the alliance robot need to be elevated at the exact end of the match? If our robot lifts another beyond the high-elevation limit, but then the elevation is lost, do those points count? How long does the robot need to be elevated, or at what point does the score count?

I believe it is how the robots come to rest after the end of the match. When everything stops moving.

All points are calculated at the very end of the match, so when the field cuts power to the robot. If you elevate a robot for example, and your lift system slowly falls down due to the weight of your alliance robot these points will not count.

Thanks everyone!