Setting publication dates based on event dates

My project will warehouse events and publication dates. I have publications on Thursdays and Sundays. A particular event could be scheduled for any day. I’d like a formula that queues publication 3 Sundays prior, and another that queues publication 1 Thursday prior, etc.