a matter/question of time idiom
(只不过是)时间问题
used when you think that something will happen at some point in the near future
If you keep on driving like that, it'll only be a matter of time before you have an accident. 如果你老是那样开车,迟早会出事的。