A person is usually not contagious for more than 10 days..PCR test just detects the protein in the virus..so even the dead virus can show positive for any number of days.usually it comes negative on 2 weeks but sometimes it prolongs upto 7 weeks also but rare occasions