A statistical model to evaluate social and economical effects of flexible work in an enterprise