к тому времени, как

by the time

→ к
phrase Rare #33,686
by the time Introduces an event that happens before or at the time of another event. The subordinate clause usually uses the past tense for past events and the future tense for future events.
RU: К тому времени, как ты вернёшься, я уже всё приготовлю.
EN: By the time you return, I’ll have prepared everything.

Но я хочу, чтобы грузовик заработал, к тому времени, как они уйдут.

But I want the truck to be working by the time they leave.

— Цветы войны (2011)

К тому времени, как мы пришли, концерт уже закончился.

By the time we arrived, the concert had already ended.