Sep 20, 2019 01:09 PM
Currently I have a field with a Contract Start Date, then I would like a field right next to it that displays the next monthly payment due date, occuring on (Current Month OR Next Month + Day of Month Due).
Given Today is 9/20/19
Eg. {Start Date} = July 3, 2018
{Next Payment Due} = October, 3, 2019.
After October 3, 2019 passes, I want it to say Nov 3, 2019, and so on, for a lot of custom start dates, all keeping the same day of the month that they started.
This would ideally need to work with the calendar block.
Hopefully that makes sense. I’ve been wracking my brain for almost 5 hours on this one dumb problem. I just want to be able to put a start date and have shown just the single next payment due date next to it.
Feb 18, 2020 04:28 AM
Hi - curious did you ever figure this out?
Emma
Feb 18, 2020 07:50 AM
I actually did (in some capacity). It functions how I described above, but kicks some errors when due dates fall on 29-30-31, and the next due month doesn’t have that day. I’m sure there are ways to fix this but I didn’t have a ton of time to flesh it out. I utilized a few hidden fields to convert dates and such. Let me see if I can explain it correctly.
Required Fields:
Actual Formulas Used
DATETIME_DIFF({DDTM (Date)}, TODAY(), ‘days’)
DATETIME_FORMAT(TODAY(), ‘MMMM’)&" “&DATETIME_FORMAT({Start Date}, ‘Do’)&”, "&DATETIME_FORMAT(TODAY(), ‘YYYY’)
DATETIME_PARSE({DDTM (Calc)}, ‘MMMM Do, YYYY’)
DATEADD({DDTM (Date)}, 1, ‘month’)
DATETIME_PARSE(IF({Days From DDTM}<0, {DDNM (Date)}, {DDTM (Date)}))
Basically now all you have to do is set the start date, and it will show you the next due date within 31 days. I’ve also colored the table so that when the due date is within 7 days, tomorror or today, it will light up darker orange. Pretty useful.
Hope this helps!
Feb 18, 2020 11:30 AM
This is a great write up of how your database works.
Found it very helpful and I am sure others will too.
Thank you,
Mary K