Evaluating sustainability of communities