be (only) a matter of time idiom
C1 (只)是个时间问题,是迟早的事
If it is (only) a matter of time until something happens, it is certain to happen but you do not know when it will happen.
It's only a matter of time before he's forced to resign. 他被迫辞职只是迟早的事。