Add complexity rating calculation