Hi all,
I have a target number, say 10, and I want to subtract 1 value from this every 30 days (as an example).
I have two dates, one is a historic date, say, 01/06/2022, and the second is the date as of today (the day you run the flow).
The difference between the two dates might be 45 days.
Therefore, I need a workflow which will subtract 1 from 10 because 45 days is past the 30 day period, but not subtract two until it reaches 60 days. I don't know if there's a clever way to have this calculation run in an 'nth term', rather than writing it out like an IF statement where I need to specify the range, i.e. 0-30, 31-60, because my range could go on doing that for 30 more times, I don't know.
For this example, we'll keep the number of days as 30 in all increments.
I can't seem to build this properly... The logic in the formula tool and DateTimeDiff aren't working for me at present - Hence why I don't any workflow to show.
Apologises, I'm a novice in execution, but have watched all the training videos so should understand the responses somewhat! 
Many thanks for anyone who can help!!!!