grammaticality - "By when you want it completed" vs. "when you want it completed by"


Which of the following is grammatical?




  1. Can you please let me know by when you want it completed.

  2. Can you please let me know when you want it completed by.



I am preferring the latter, but will really appreciate your professional advice.




Comments