Calculated Column with TODAY() issue


Using the following:

"If Authorization Date is null, calculate the difference between Receive Date and today; If Authorization Date is not null, calculate the difference between Receive Date and Authorization Date"

This formula was tried but generated bad results:

=IF(ISBLANK((Authorization Date)),DATEDIF((Received Date),TODAY(),"d"),DATEDIF((Authorization Date),(Received Date),"d"))

Any insight / help would be appreciated!