Complete the following sentence by using correct form of verb in parentheses
1. By the time I ........... (finish) my homework, it was already dark
2. If i ............ ( have ) a million rupees. I would buy a new bike