Hello,
Using a last modified field type named "Closed" and a lookup field showing the last one called "Meter Type" and "Repeat Interval" I am trying to calculate and output the appropriate date when closed is 7/17/2024 16:41, meter type is Calendar Month, and repeat interval is 12, the formula should produce 07/31/2025. However I am repeatedly running into issues with this where 6/30/2025 or 7/1/2025 is all I can produce.
Here is the formula I am currently using:
IF(
{Meter Type} = "Calendar Month",
IF(
{Due Date},
DATEADD(
DATEADD({Due Date}, {Repeat Interval}, 'months'),
-DAY(DATEADD({Due Date}, {Repeat Interval}, 'months')) + 1,
'days'
),
DATEADD(
DATEADD({Closed}, {Repeat Interval}, 'months'),
-DAY(DATEADD({Closed}, {Repeat Interval}, 'months')) + 1,
'days'
)
),
BLANK()
)
However the output is 7/1/2024 11:41pm when it should be 07/31/2024.
Thanks