be (only/just) a matter of time
US /biːt əˈraʊnd ðə bʊʃ/
UK /biːt əˈraʊnd ðə bʊʃ/

1.
used to say that something is certain to happen, although you do not know when
:
•
It's only a matter of time before someone gets hurt if they don't fix that broken step.
•
With their current performance, it's just a matter of time until they win the championship.