PhpSpreadsheet/tests/data/Calculation/Financial/COUPPCD.php
Mark Baker 0ea97f14e1
Fixes to coupon functions (#1068)
* New Unit Tests for COUPNUM()

* COUPNUM should not return zero when settlement is in the last period

* Additional tests and fixes for COUPNCD() and COUPPCD() functions
2019-07-10 21:22:16 +02:00

69 lines
935 B
PHP

<?php
// Settlement, Maturity, Frequency, Basis, Result
return [
[
39036,
'25-Jan-2007',
'15-Nov-2008',
2,
1,
],
[
40476,
'2011-01-01',
'2012-10-25',
4,
],
[
'#VALUE!',
'Invalid Date',
'15-Nov-2008',
2,
1,
],
[
'#VALUE!',
'25-Jan-2007',
'Invalid Date',
2,
1,
],
[
'#NUM!',
'25-Jan-2007',
'15-Nov-2008',
3,
1,
],
[
'#NUM!',
'24-Dec-2000',
'24-Dec-2000',
4,
0,
],
[
36793,
'23-Dec-2000',
'24-Dec-2000',
4,
0,
],
[
36793,
'24-Sep-2000',
'24-Dec-2000',
4,
0,
],
[
36701,
'23-Sep-2000',
'24-Dec-2000',
4,
0,
],
];