be only a question of time
To be an inevitability or eventuality; to be or seem sure to happen at some point in the future. With your reckless spending behavior, it's only a question of time before you go broke. We'll catch the person responsible eventually. It's only a question of time.