I will have finished the homework by the time my mom comes back
I had finished my homework by the time he knocked the door.