Hi Sal. Thanks for Posting your query.
Stage 4 Bile Duct cancer
means that its already spread outside the primary site. Most of these spread occurs through blood stream.
Its difficult to tell in exact time frame, how long it would take to spread to brain.
However, the closest answer would be that it can take a few weeks if not being treated.
Hope this answers your query.
Thanks and Regards