Comparing a date against a literal number isn’t the correct way to check for date differences. You’ll need to use the DATETIME_DIFF()
function. Because you’ll need to make this comparison multiple times, I recommend making a separate formula field that just calculates the difference (I’ll call this field {Difference}
to make things easy):
DATETIME_DIFF({Job Booked In}, TODAY(), "days")
Negative values mean the {Job Booked In}
date is before the current date, while positive numbers indicate dates in the future. With that done, your main formula could look like this:
IF(
Difference = 0, "TODAY",
IF(
AND(Difference >= -7, Difference < 0),
"PREVIOUSLY",
IF(
AND(Difference > 0, Difference <= 7),
"UPCOMING"
)
)
)