Student or Learner
1) Michael is planning to have done the shopping by/before 3 o'clock.
2) Michael is planning to do the shopping by/before 3 o'clock.
I have some trouble about whether to use 'perfect participle' or 'infinitive' in these sentences. In my humble opinion, the first sentence is OK, but I have no idea about the second one.