Hi everyone,
I’m exploring how to build a more reliable date-calculation workflow in n8n that can track relationship milestones and automatically generate useful updates.
The idea is to accept a relationship start date through a form or webhook, calculate the elapsed time, and trigger notifications when milestones such as 100 days, six months, or one year are reached.
For the calculation layer, I’m considering using n8n expressions with Luxon or a Code node for more control over date validation and duration calculations. A small date calculator such as can also serve as a simple reference for the user-facing experience.
The workflow I have in mind is:
-
Webhook/Form Trigger: Receive the start date and optional user details.
-
Validation: Check the date format and reject invalid or future dates where appropriate.
-
Date Calculation: Calculate the elapsed duration in days, hours, minutes, and seconds.
-
Schedule Trigger: Check whether a predefined milestone has been reached.
-
Notification: Send a personalized message through email or another connected service.
One challenge is handling timezone differences and ensuring the workflow doesn’t send duplicate notifications when it runs repeatedly. I’d also like to distinguish calendar-based milestones, such as six months, from fixed-duration milestones, such as 180 days.
My questions for the community:
-
Would you use a Schedule Trigger with a database lookup, or a date-driven workflow for milestone detection?
-
What is the best way to handle timezone consistency and daylight-saving changes?
-
How would you prevent duplicate notifications if a workflow retries after a failed execution?
-
Would you keep the calculation logic in a Code node or use built-in date expressions wherever possible?
I’d appreciate suggestions on the workflow architecture and any relevant examples. The goal is to make the process reliable, maintainable, and easy to extend to other date-based reminders.