d = t (N-n)p(1-p) / ((N-1)n)