How much time do I have to call a discard?

The window of opportunity to call a discard extends from the time the tile is discarded, until the next player has either racked their wall tile, discarded it (if their didn't rack it), or declared that they wish to swap the tile for a joker.