Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:
Rewrite this sentence using a combination of present simple and past perfect tenses

### Input:
The man had finished his work

### Response:
The man had finished his work by the time he left.