Under the onehop assumption, the expected detection time of w can thus be calculated like this