To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=93534
                 Issue #|93534
                 Summary|PRICEDISC et al.: Basis 0 NASD implementation
               Component|Spreadsheet
                 Version|OOo 2.4.1
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|programming
             Assigned to|spreadsheet
             Reported by|drking





------- Additional comments from [EMAIL PROTECTED] Sat Sep  6 06:30:17 +0000 
2008 -------
A number of functions, including PRICEDISC use GetDiffDate() to calculate the 
result.

GetDiffDate() doesn't implement basis 0 (NASD) correctly - it makes no attempt 
to change month end dates.
Example:
PRICEDISC("2009-07-31";"2009-08-5";2%;100;0) returns
99.977777777778 based on 30+5-31 = 4 days difference in dates (!)
Excel correctly returns
99.972222222222 (5 days difference in dates)

(note that the inverse function YIELDDISC uses a difference routine (!) - 
YEARFRAC - I have not investigated that yet)

Reference: NASD implementation was also the subject of issue 84934 - for 
DAYS360.

PS: GetDiffDate() also gives the days in the *first year* - this is often not 
what is required, and is different from Excel. I'm not yet sure how this should 
be specified.

I guess there are ODFF implications here?

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to