Instead of 'advance', use the " - 7*num" arithmetic. That is more clear and beautiful.