As an example, right now I am living and working in Amsterdam. My commute is 10 minutes by bike or 25min walk. I generally prefer to work in the office since I like the free exercise, context switch, and my office is also nice. However if my commute was longer than 60 mins, and in a car or public transport, I would want to work remotely.