Why not:

```erlang
wait_for_reqid(ReqId, erlang:max(Timeout, RTimeout))
```