Your question is SAS Code for Next Visit Date. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
You were told a patient should revisit after 10 days, but if the tenth day falls on Sunday you should come the next day; write SAS code to calculate the next_visit.