daily task generate function