It only took me about a year of about 2 hours per day learning german as my third language to feel confident enough to apply for a job that was similar enough to what I got in S.F, I was hired in about a week at a financial institution as an applied data scientist in the fraud deparment. Could probably have tried earlier but wanted to be able to integrated decently into the swiss society without feeling I was leeching too much.