Files
PhpSpreadsheet/tests/data/Calculation/Financial/INTRATE.php
Mark Baker a34695e0f9 Financial functions more rationalization (#1990)
* Additional unit tests and rationalisation for Financial Functions
* Providing a series of sample files for Financial functions
* Refactor the last of the existing Financial functions
* Some more unit tests with default assignments from null arguments

Co-authored-by: Adrien Crivelli <adrien.crivelli@gmail.com>
2021-04-12 22:08:58 +02:00

54 lines
784 B
PHP

<?php
// Settlement, Maturity, Investment, Redemption, Basis, Result
return [
[
0.05768,
'2008-02-15',
'2008-05-15',
1000000,
1014420,
2,
],
[
0.225,
'2005-04-01',
'2010-03-31',
1000,
2125,
],
[
0.225,
'2005-04-01',
'2010-03-31',
1000,
2125,
null,
],
[
'#VALUE!',
'2008-02-15',
'2008-05-15',
1000000,
1014420,
'ABC',
],
[
'#NUM!',
'2008-02-15',
'2008-05-15',
1000000,
-1014420,
2,
],
[
'#VALUE!',
'Invalid Date',
'2008-05-15',
1000000,
1014420,
2,
],
];