PhpSpreadsheet/tests/data/Calculation/Financial
oleibman 7e4331e3ab
Error in COUPNCD (#2119)
See issue #2116. Code for handling end of month (method couponFirstPeriodDate) needed a fix. Fixed it, confirmed it covered the reported issue with no regression problems. Then added some extra similar tests to all the callers of couponFirstPeriodDate, and ...

One new test, in COUPDAYSNC, does not agree with Excel. It also does not agree with LibreOffice. It does, however, agree with Gnumeric, and with my (hardly guaranteed) hand calculation of what the result should be. So, I'm going with it (and have added an appropriate comment to the test data). I'm glad to discuss the matter with anyone more familiar than I with how this is supposed to work - those 360-day years are killers.
2021-05-29 12:02:36 +02:00
..
ACCRINT.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
ACCRINTM.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
AMORDEGRC.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
AMORLINC.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
COUPDAYBS.php Error in COUPNCD (#2119) 2021-05-29 12:02:36 +02:00
COUPDAYS.php Error in COUPNCD (#2119) 2021-05-29 12:02:36 +02:00
COUPDAYSNC.php Error in COUPNCD (#2119) 2021-05-29 12:02:36 +02:00
COUPNCD.php Error in COUPNCD (#2119) 2021-05-29 12:02:36 +02:00
COUPNUM.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
COUPPCD.php Error in COUPNCD (#2119) 2021-05-29 12:02:36 +02:00
CUMIPMT.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
CUMPRINC.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
DB.php Financial functions next stage of refactoring (#1943) 2021-03-21 21:40:49 +01:00
DDB.php Financial functions next stage of refactoring (#1943) 2021-03-21 21:40:49 +01:00
DISC.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
DOLLARDE.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
DOLLARFR.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
DaysPerYear.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
EFFECT.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
FV.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
FVSCHEDULE.php Financial start refactoring cash flow functions (#1986) 2021-04-04 14:44:06 +02:00
INTRATE.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
IPMT.php more extraction of Excel Financial functions (#1989) 2021-04-06 12:45:37 +02:00
IRR.php Financial start refactoring cash flow functions (#1986) 2021-04-04 14:44:06 +02:00
ISPMT.php more extraction of Excel Financial functions (#1989) 2021-04-06 12:45:37 +02:00
MIRR.php Financial start refactoring cash flow functions (#1986) 2021-04-04 14:44:06 +02:00
NOMINAL.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
NPER.php more extraction of Excel Financial functions (#1989) 2021-04-06 12:45:37 +02:00
NPV.php Financial start refactoring cash flow functions (#1986) 2021-04-04 14:44:06 +02:00
PDURATION.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
PMT.php more extraction of Excel Financial functions (#1989) 2021-04-06 12:45:37 +02:00
PPMT.php more extraction of Excel Financial functions (#1989) 2021-04-06 12:45:37 +02:00
PRICE.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
PRICE3.php Fix RATE, PRICE, XIRR, and XNPV Functions (#1456) 2020-05-17 19:50:01 +09:00
PRICEDISC.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
PRICEMAT.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
PV.php more extraction of Excel Financial functions (#1989) 2021-04-06 12:45:37 +02:00
RATE.php more extraction of Excel Financial functions (#1989) 2021-04-06 12:45:37 +02:00
RECEIVED.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
RRI.php Financial start refactoring cash flow functions (#1986) 2021-04-04 14:44:06 +02:00
SLN.php Financial functions next stage of refactoring (#1943) 2021-03-21 21:40:49 +01:00
SYD.php Financial functions next stage of refactoring (#1943) 2021-03-21 21:40:49 +01:00
TBILLEQ.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
TBILLPRICE.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
TBILLYIELD.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
USDOLLAR.php Additional language data, and improved automated build of translation files for Calculation Engine locale 2021-05-20 20:41:09 +02:00
XIRR.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
XNPV.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
YIELDDISC.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00
YIELDMAT.php Financial functions more rationalization (#1990) 2021-04-12 22:08:58 +02:00