Whether you can work well from home depends on these three things