Hi @MTLGuy
Good question.
The logic for this can be a bit tricky especially to defensively code.
There are 3 inputs:
- Start Date & Time
- End Date & Time
- Interval (in minutes)
Things that have to be defensively coded:
- What if the Interval is larger than the delta between the Start/End Date Time
- What if the End Date is before the Start Date
- What if the interval doesn’t split nicely based on the Start/End Dates & Times
- ...and so on
Probably would be best to standardize into a form that is filled out.
Could be a simple Airtable Form with 2 Date/Time fields and 1 dropdown for interval. (e.g. 15 mins, 30 mins, etc.)
An Airtable Script can be created to be run automatically via an Airtable Automation triggered by a new form submit.
Hiya @MTLGuy! I wanted to swing by and see if Troy’s recommendations helped get this sorted for you? Keep us posted on your success!