Files
PhpSpreadsheet/tests/data/Calculation/Financial/AMORLINC.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

35 lines
712 B
PHP

<?php
// Cost, Date purchased, End of the 1st period, Salvage, Period, Depreciation, Basis, Result
return [
[
360,
2400, '2008-08-19', '2008-12-31', 300, 1, 0.15, 1,
],
[
576,
2400, '2008-08-19', '2008-12-31', 300, 2, 0.24, 1,
],
[
30,
150, '2011-01-01', '2011-09-30', 20, 1, 0.2, 4,
],
[
22.41666667,
150, '2011-01-01', '2011-09-30', 20, 0, 0.2, 4,
],
[
17.58333333,
150, '2011-01-01', '2011-09-30', 20, 4, 0.2, 4,
],
[
0.0,
150, '2011-01-01', '2011-09-30', 20, 5, 0.2, 4,
],
[
'#VALUE!',
150, 'notADate', '2011-09-30', 20, 1, 0.2, 4,
],
];