by the time
At the time when something happens that is after another event or situation has already passed or occurred. By the time she realized she had cancer, it had already spread. If you don't have this mess cleaned up by the time I get home, you're going to be in serious trouble!