Will I be able to get 1500 hours of flight training while working within 2 years?
That really depends what flight school you instruct for.
If you’re talking about ATP, since you’ll complete the program with approx 250hrs (leaving 1250hr balance) and the average instructor builds about 75hrs/mos. That equals about 16.5mos which is well under 2 yrs.
There are lots of factors that could equate to “Will I be able to get 1,500 hours of flight in 2 years.” Not only does this I feel factor in what school you attend for flight training, but your work ethic when you’re instructing. Also, if we happen to have another world-pandemic, could it impact student enrollment, does something medically happen that you can’t fly? These are all factors that we can’t tell you what will happen. As Adam pointed out, 16.5 months of an average of 75hrs/mo. is EXTREMELY doable, if you’re willing to put the work in.