Hcg and miscarriage at 4 weeks

Hi everyone. If I miscarried at 4 weeks exactly, would a pregnancy test still show positive the next day? How long would it take to fade?