[Discussion] Custom Calculation Attributes results not as expected
Posted: Thu Dec 26, 2024 2:23 am
9.0 RC3 clean install.
The attached Tasklist has two calculated custom date fields.
One is a calculation of the 'Due Date' minus 'today'
And the other is a calculation of 'today' minus 'Due Date'
I expected both values to be equal but with an opposite sign.
The number of days from 'today' to the 'Due Date' correctly shows 50.00 D. But the number of days from the Due Date to 'today' shows -48.00 D. I expected it to show -50.00 D.
Hope this is helpful and thanks!
PS: I LOVE being able to show these custom calculation results in the Attributes Entry Pane! Really helpful to see them right there when you are entering other attributes in that pane.
UPDATE:
The issue does not seem to necessarily be related to the 'today' token since I also got the same differing results calculating '3 Due Date Minus Start Date' and '4 Start Date Minus Due Date' ('today' token not used in these calculations). These two also seemed to differ by two days.
I updated the original screenshot and .tdl to reflect this updated observation.
The attached Tasklist has two calculated custom date fields.
One is a calculation of the 'Due Date' minus 'today'
And the other is a calculation of 'today' minus 'Due Date'
I expected both values to be equal but with an opposite sign.
The number of days from 'today' to the 'Due Date' correctly shows 50.00 D. But the number of days from the Due Date to 'today' shows -48.00 D. I expected it to show -50.00 D.
Hope this is helpful and thanks!
PS: I LOVE being able to show these custom calculation results in the Attributes Entry Pane! Really helpful to see them right there when you are entering other attributes in that pane.
UPDATE:
The issue does not seem to necessarily be related to the 'today' token since I also got the same differing results calculating '3 Due Date Minus Start Date' and '4 Start Date Minus Due Date' ('today' token not used in these calculations). These two also seemed to differ by two days.
I updated the original screenshot and .tdl to reflect this updated observation.