Give or take 8 to 10 months for the training, depending on type rating held and position (Cap/F/O)
During that time, expect to be able to return home once for around 3 weeks. Some have had more trips home during this time but that depends on circumstances so don't count on it.