calculateRepeatEndDate

Calculate the scheduled end date property for a scheduled repeating hook. Will be calculated relative to either a model field or an already-calculated start date (date of the first scheduled hook in a sequence)

  • Parameters

    • timing: TimingConfig

      the offset and specific time to schedule the hook

    • scheduledDate: Date

      the date of the first scheduled email in this batch

    • OptionalmodelData: Record<string, unknown>

      the model data for the hook. Used for reference dates.

    Returns Date