depends what kind of 40 miles it is, as said above. My commute is 24-26 miles depending on the route I take, and can take from 50 minutes (when the schools are off) to double that or more if traffic goes against me. Which being as part of it is on the M62, it usually does 🙁
My journey consists of travelling from the north side of Bradford to between Barnsley & Wakefield. The motorway section typically takes no more than 25 minutes, but getting across Bradford and/or Leeds to the motorway is another issue entirely.
Before this job my commutes took me into Hillsborough (sod of a drive down the A61 from M1 J36); across the Pennines into Rossendale (42 miles, nice drive, only Keighley & Colne between me & work), and before that, down the M1 to Rotherham. Before Rotherham I was local to work. I've been doing this since 1997 & you get used to it