Most people use a two week withdrawl for worming meds. There are very few studies for chickens and eggs so when there is little info sometimes the recommendation defaults to 'forever'. Here is one small study for ivermectin, based on it I would think that two weeks of egg withdrawl would be safe. But everyone should do what they are comfortable with.
https://www.ncbi.nlm.nih.gov/pubmed/29378154
https://www.ncbi.nlm.nih.gov/pubmed/29378154