Question: is 40 minute commute too long?
Answer: It all depends. Lots of people drive a lot longer than that to get to work. If it's a good job with decent pay and prospects, it's probably worth it. If it's a fairly OK job but the 40 minutes' drive consists largely of sitting in heavy traffic just to travel a few miles, then it's not so clear-cut.