I am trying to build a workflow around a certain business rule involving 2 dates. I've attached the workflow that I've built so far. Here is the rule: [Date (Week Beginning)] must be adjusted so that it is 7 or more days before the [Date submitted] and [Date (Week Beginning)] must also be changed to a Monday if it is not (I used the DateTimeAdd([Date (Week Beginning)], -x, "days") formula to adjust these).
I've built the majority of the workflow, but there is one case that I am having trouble figuring out. This case involves those [Date (Week Beginning)] cases that are not Mondays and are less than 7 days before their associated [Date submitted].
For example, we can see in the 'Days between Date and Submission Date' column that these are all < 7 days. What I'm looking to do is add a new column containing the date which would be the Monday before the submission date that is at least 7 or more days before the 'Date (Week Beginning)'. So for Transaction 660 this date would be 2017-11-20.
Hope that makes sense, I've attached the workflow that I created so far.