be only a matter of time
US /bi ˈoʊnli ə ˈmætər əv taɪm/
UK /bi ˈoʊnli ə ˈmætər əv taɪm/

1.
used to say that something is certain to happen, but you do not know exactly when
:
•
It will be only a matter of time before they find out the truth.
•
With his talent, it's only a matter of time until he becomes famous.