How long can syphilis go untreated before it affects the eyes?

How long can syphilis go untreated before it affects the eyes?