Question: if a president is impeached when do they leave office?
Answer: The impeached official remains in office until a trial is held. That trial, and removal from office if convicted, is separate from the act of impeachment itself.