PhpSpreadsheet/tests/data/Calculation/Financial/ACCRINT.php

76 lines
1.2 KiB
PHP

<?php
// Issue date, 1st Interest, Settlement, Rate, Par, Freq, Basis, Result
return [
[
'2008-03-01',
'2008-08-31',
'2008-05-01',
0.10000000000000001,
1000,
2,
0,
16.666666666666998,
],
[
'2008-03-05',
'2008-08-31',
'2008-05-01',
0.10000000000000001,
1000,
2,
0,
15.555555555555999,
],
[
'2010-01-01',
'2010-06-30',
'2010-04-01',
0.080000000000000002,
10000,
4,
200,
],
[
'2008-03-05',
'2008-08-31',
'2008-05-01',
-0.10000000000000001,
1000,
2,
0,
'#NUM!',
],
[
'Invalid Date',
'2008-08-31',
'2008-05-01',
0.10000000000000001,
1000,
2,
0,
'#VALUE!',
],
[
'2008-03-01',
'2008-08-31',
'2008-05-01',
'ABC',
1000,
2,
0,
'#VALUE!',
],
[
'2008-03-01',
'2008-08-31',
'2008-05-01',
0.10000000000000001,
1000,
2,
'ABC',
'#VALUE!',
],
];