It is not that hard to do simply by trial and error - check how much will be left after first extraction, after second extraction and so on. Try to derive a formula for amount of substance left after one extraction and use it several times or just raise it to power.
For fast calculations you should use logarithms (hint: if y=xn then log(y) = n log(x), you can solve for n).