Let $P=\{p_1,\ldots, p_k\}$ be a set of primes. For a natural number $n$, define $\mu_P(n)$ as the probability that a random number selected from $\mathbb{N}_{\le n} = \{1,2,\ldots,n\}$ has no divisor among the primes in $P$. A few numerical examples: $$P = \{2,5,37\}, \; n = 1000, \; \mu_P(n) \approx 0.39\;.$$ $$P = \{3,7,11,19\}, \; n = 1000, \; \mu_P(n) \approx 0.49\;.$$ $$P = \{5,11,29,101\}, \; n = 1000, \; \mu_P(n) \approx 0.70\;.$$ $$P = \{5,11,29,101\}, \; n = 10000, \; \mu_P(n) \approx 0.49\;.$$
Q. For a given $P$ and $n$, how can $\mu_P(n)$ be calculated quickly?
My question is equivalent to calculating how much of $\mathbb{N}_{\le n}$ falls through the sieve determined by $P$, without explicitly listing that subset of $\mathbb{N}_{\le n}$ (that's what I mean by "quickly"). This is likely not a difficult calculation, but I am not getting it correct.
An approximate answer, very accurate when $n$ is large compared to the primes, is $$\left(1-\frac 1{p_1}\right)\left(1-\frac 1{p_2}\right)\left(1-\frac 1{p_3}\right)\ldots\left(1-\frac 1{p_k}\right)$$ Basically each prime $p$ eliminates $\frac 1p$ of the values. The eliminations are almost independent, so you just multiply them. It will be exact when $n$ is a multiple of the product of the primes.