Mike asked Bob if he had done his homework or he had left it till the evening. Mike also added that he had thought of inviting Bob to go to the theatre with him, but he remembered that Bob nearly always did his homework in the evening.При переводе прямой речи в косвенную глагол, который стоял в Past Simple, употребляется в Past Perfect (did - had done), а глагол, который стоял в Present Simple, нужно употребить в Past Simple (do - did).