If you don't get what I mean, I'll add details.
There is no set amount of time needed for a shiny, but using the masuda method there is a 1/1365. It may take 10 years to get one, it can take one attempt. Its all luck. Nothing else really.