Demarcation: fix the iteration calculation