How is 20 minute power calculated in a race

Idle curiosity and I’m sure this has been asked loads before…

How does Zwift calculate 20-minute power in a race? Is it the first 20 minutes or a riders best 20 minutes of a given event?

Thanks, Adam.

Best 20 min during the race