Only you can answer that question. How much “extra” money will you have available each week for flight training, while working part-time and also paying all your living expenses? You would need to budget around $100K over XX period of time. If you can afford a pace of 2-3 flight lessons per week, it could take you realistically 2-3 years to acquire the hours, certificates and ratings to start making money as a pilot. If you can only afford to fly once a week, then you should triple your timeframe as an estimate.