Waiting time problem for an almost perfect match