Zach, you could find more information about EstimatedWaitTime in the API resource in Developer Center.
https://developer.mypurecloud.com/api/rest/v2/routing/estimatedwaittime.html
As for the actual mathematical formulation, we use a combination of queuing theories, taking into account abandonment behavior using proprietary formulation.