A study by The Lancet medical journal gives a sobering answer. It reports that coronavirus patients can keep the pathogen in their respiratory tract for as long as 37 days, meaning that they could remain infectious for many weeks.
https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(20)30566-3/fulltext#seccestitle10