Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

DATETIME_DIFF showing Negative Result

Topic Labels: Formulas
Jump to Solution
386 2
Showing results for 
Search instead for 
Did you mean: 

So im trying to calculate days that are left for a project to end.
Im using
DATETIME_DIFF({End Date}, TODAY(), ‘days’) but some ended projects show -2 (the ones that ended 2 days ago) how can I make them just stay at 0? Maybe an if condition. But Cant seem to find it. Thanks!

1 Solution

Accepted Solutions
MAX(0, DATETIME_DIFF({End Date}, TODAY(), 'days'))

See Solution in Thread

2 Replies 2
MAX(0, DATETIME_DIFF({End Date}, TODAY(), 'days'))

Works! I appreciate it! :clap: