The ranking takes into account factors such as safety, happiness levels, affordability of childcare, flexible work options, ...