cold sore

does anyone know when a cold sore would no longer be contagious? Thank you