Answer: At least 4 hours to 48 hours after the interview
Explanation: A thank you email tells the interviewer that you have had time to reflect on the interview. If you send it right after the interview it won't feel genuine because it would seem like you had already prepared it in advance, if you wait too long the interviewer might fail to remember you.