Calculate filename from iteration