set $first_day 1 if $first_day == 7