Hi chuck100 and welcome,
It varies..by the time you know, you may be contagious. After 1st detection, your dr will test you periodically.. looking for antibodies to appear. 95% of those infected, will pass the virus, by immune response. You will then acquire antibodies, that will make you immune to future infections.
Hope that helps... good luck