Take your hourly wage and calculate how much you could have earned instead of sitting in transport. From that find the most cost/earning-efficient place of staying. My guess is you will end up somewhere in London.
If you are paid hourly and can adjust your number of hours this is a sensible way to compare. But many of us are paid a fixed salary. Also, many of us could potentially get work done while commuting.