Six months to a year, depending on boat, stops, calms, pirates, storms, currents, breakdowns, running out of supplies. You will need a lot of luck.
And if you have to ask a question like that in this forum, obvious you do not have enough experience to pull this off.
My neighbor's son is a pro yacht captain, I have talked to him a lot about his work. And I crewed on a geophysical vessel for 3 months, 49 years ago during hurricane season in Caribbean. We had storms, breakdowns, and ran out of water.