---
title: Rule syntax for subtracting days from a date time field in automation
description: "From a 'date and time' type field, we can subtract/add the number of hours and not the number of days. Hence, the syntax for the following screenshot will be would be @{Lead:mx_Subscription_End_Date,}+168 Note: For the '+' function we use the '-' ..."
url: "https://supportb.kinsta.cloud/docs/article-26-10-2023/"
updated: "2023-10-26"
category: "FAQ: Automations"
---

# Rule syntax for subtracting days from a date time field in automation

From a 'date and time' type field, we can subtract/add the number of hours and not the number of days.

Hence, the syntax for the following screenshot will be would be @{Lead:mx_Subscription_End_Date,}+168

![](https://desk.zoho.in/galleryDocuments/edbsn59452f9cf762765ab3e89818f4adf411607b8c0c59b92cba9aa73ca5987fb80c039e0c8efe15aa2562b6ebb65b0ddc38a2587be9582535127d86f6eddc0998e7)

**Note:** For the '+' function we use the '-' sign and for the '-' function we use the '+" sign. Also, please do not leave any whitespaces between the lead field, the '+' sign, and the number of hours.
