need a help for accept and ignore some days

Hi, remember put and reproducible example the data for better help you.
A example is this dput(youdata[1:30, ]). And some of code.