In our experience, most roofing assemblies recommend that water does not stand for longer than 24 hours.
However, we recommend that architects and engineers confirm the maximum amount of time allowable for detention with the membrane manufacturer before specifying the type, size and placement of drains and pipes.