Ask AI
Skip to main content

Add Time

Function: Add Time

This function allows you to easily adjust a date and time by adding a specific amount of time to it. Whether you need to calculate a future deadline, schedule an event, or simply shift a timestamp, this action provides a straightforward way to modify dates without any complex calculations.

Input

  • Date: The starting date and time that you want to adjust.
  • Amount: The numerical value representing how much time you want to add. For example, if you want to add 5 hours, you would enter '5'.
  • Unit: The unit of time for the amount you are adding. You can choose from a dropdown list:
    • Nano seconds
    • Milli seconds
    • Seconds
    • Minutes
    • Hours
    • Days
    • Weeks
    • Years

Output

  • Result: The new date and time after the specified amount of time has been added. This will be stored in a variable you name (defaulting to "RESULT").

Execution Flow

Real-Life Examples

Here are some practical ways you can use the "Add Time" function:

Example 1: Scheduling a Follow-up Email

Imagine you want to send a follow-up email exactly 3 days after a customer signs up.

  • Inputs:
    • Date: [Current Date/Time of Signup] (e.g., 2023-10-26 10:00 AM)
    • Amount: 3
    • Unit: Days
    • Result: FollowUpDate
  • Result: The application calculates the date and time for the follow-up email (e.g., 2023-10-29 10:00 AM) and stores it in a variable named FollowUpDate, which can then be used by your email automation.

Example 2: Extending a Trial Period

A user requests an extension for their 7-day free trial by an additional 2 weeks.

  • Inputs:
    • Date: [Original Trial End Date] (e.g., 2023-11-01 11:59 PM)
    • Amount: 2
    • Unit: Weeks
    • Result: NewTrialEndDate
  • Result: The system calculates the new trial end date (e.g., 2023-11-15 11:59 PM) and saves it in the NewTrialEndDate variable, updating the user's trial status.

Example 3: Calculating a Project Deadline

You have a project starting today and estimate it will take 6 months to complete.

  • Inputs:
    • Date: [Today's Date] (e.g., 2023-05-15 09:00 AM)
    • Amount: 6
    • Unit: Months
    • Result: ProjectCompletionDate
  • Result: The function determines the estimated project completion date (e.g., 2023-11-15 09:00 AM) and stores it in the ProjectCompletionDate variable for your project management dashboard.