Reply
Contributor
prush
Posts: 4
Accepted Solution

Days until close

Hi, Fairly simple question I'm sure for the seasoned SF.com coder. 

 

I'd like to make a formula field that for my opportunities that calculates the number of days from NOW until the specified close date of the opportunity. Kind of like Age (  NOW() - CreatedDate) ), but the opposite direction. 

 

What would the formula be?

 

Any help would be great, thanks!

 

prush 

Super Contributor
Stevemo
Posts: 1,790

Re: Days until close

Here you go, you probably want to stop counting once it is closed so I added an IsClosed check.

 

IF(NOT(IsClosed), CloseDate - TODAY(), NULL)

 

 

 

"If you're in a band and you think that you're good, you probably suck. If you're in a band and you think that you suck, you probably do." - Bob Pollard
Contributor
prush
Posts: 4

Re: Days until close

Thanks a ton!
Super Contributor
Stevemo
Posts: 1,790

Re: Days until close

You're welcome, you owe me a beer!

http://beeradvocate.com/beer/profile/863/7971/ 

"If you're in a band and you think that you're good, you probably suck. If you're in a band and you think that you suck, you probably do." - Bob Pollard