Files
PhpSpreadsheet/tests/data/Calculation/Financial/YIELDMAT.php
T
Mark Baker 5ad5f787ab Financial functions next stage of refactoring (#1943)
* First steps splitting out the Amortization and Deprecation Excel functions from Financials
* Verify which methods allow negative values for arguments
* Additional unit tests for SLN() and SYD()
* Additional unit tests for DDB()
* Additional unit tests for DB()
* Verify Amortization cases where salvage is greater than cost
* More unit tests for Amortization
* Resolve broken test in AMORLINC() and extract amortizationCoefficient calculation
* verify amortizationCoefficient calculation
* Extract YIELDDISC() and YIELDMAT() to Financial\Securities
* Additional validation for Securities Yield functions
2021-03-21 21:40:49 +01:00

41 lines
900 B
PHP

<?php
return [
[
0.06095433369153867,
'15-Mar-2008', '3-Nov-2008', '8-Nov-2007', 0.0625, 100.0123, 0,
],
[
0.04210977320221025,
'1-Jan-2017', '30-Jun-2018', '01-Jul-2014', 0.055, 101,
],
[
'#VALUE!',
'Invalid', '30-Jun-2018', '01-Jul-2014', 0.055, 101,
],
[
'#VALUE!',
'1-Jan-2017', 'Invalid', '01-Jul-2014', 0.055, 101,
],
[
'#VALUE!',
'1-Jan-2017', '30-Jun-2018', 'Invalid', 0.055, 101,
],
[
'#VALUE!',
'1-Jan-2017', '30-Jun-2018', '01-Jul-2014', 'NaN', 101,
],
[
'#VALUE!',
'1-Jan-2017', '30-Jun-2018', '01-Jul-2014', 0.055, 'NaN',
],
[
'#NUM!',
'1-Jan-2017', '30-Jun-2018', '01-Jul-2014', -0.055, 101,
],
[
'#NUM!',
'1-Jan-2017', '30-Jun-2018', '01-Jul-2014', 0.055, -101,
],
];