Updates to 3rd party libraries
Add Dockerfile and specific docker-php.ini
This commit is contained in:
75
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/ACCRINT.php
vendored
Normal file
75
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/ACCRINT.php
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
// Issue date, 1st Interest, Settlement, Rate, Par, Freq, Basis, Result
|
||||
|
||||
return [
|
||||
[
|
||||
16.666666666666998,
|
||||
'2008-03-01',
|
||||
'2008-08-31',
|
||||
'2008-05-01',
|
||||
0.10000000000000001,
|
||||
1000,
|
||||
2,
|
||||
0,
|
||||
],
|
||||
[
|
||||
15.555555555555999,
|
||||
'2008-03-05',
|
||||
'2008-08-31',
|
||||
'2008-05-01',
|
||||
0.10000000000000001,
|
||||
1000,
|
||||
2,
|
||||
0,
|
||||
],
|
||||
[
|
||||
200,
|
||||
'2010-01-01',
|
||||
'2010-06-30',
|
||||
'2010-04-01',
|
||||
0.080000000000000002,
|
||||
10000,
|
||||
4,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
'2008-03-05',
|
||||
'2008-08-31',
|
||||
'2008-05-01',
|
||||
-0.10000000000000001,
|
||||
1000,
|
||||
2,
|
||||
0,
|
||||
],
|
||||
[
|
||||
'#VALUE!',
|
||||
'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',
|
||||
],
|
||||
];
|
45
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/ACCRINTM.php
vendored
Normal file
45
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/ACCRINTM.php
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
// Issue date, Settlement, Rate, Par, Basis, Result
|
||||
|
||||
return [
|
||||
[
|
||||
20.547945205478999,
|
||||
'2008-04-01',
|
||||
'2008-06-15',
|
||||
0.10000000000000001,
|
||||
1000,
|
||||
3,
|
||||
],
|
||||
[
|
||||
800,
|
||||
'2010-01-01',
|
||||
'2010-12-31',
|
||||
0.080000000000000002,
|
||||
10000,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
'2008-03-05',
|
||||
'2008-08-31',
|
||||
-0.10000000000000001,
|
||||
1000,
|
||||
2,
|
||||
],
|
||||
[
|
||||
'#VALUE!',
|
||||
'Invalid Date',
|
||||
'2008-08-31',
|
||||
0.10000000000000001,
|
||||
1000,
|
||||
2,
|
||||
],
|
||||
[
|
||||
'#VALUE!',
|
||||
'2008-03-01',
|
||||
'2008-08-31',
|
||||
'ABC',
|
||||
1000,
|
||||
2,
|
||||
],
|
||||
];
|
26
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/AMORDEGRC.php
vendored
Normal file
26
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/AMORDEGRC.php
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
// Cost, Date purchased, End of the 1st period, Salvage, Period, Depreciation, Basis, Result
|
||||
|
||||
return [
|
||||
[
|
||||
776,
|
||||
2400,
|
||||
'2008-08-19',
|
||||
'2008-12-31',
|
||||
300,
|
||||
1,
|
||||
0.14999999999999999,
|
||||
1,
|
||||
],
|
||||
[
|
||||
42,
|
||||
150,
|
||||
'2011-01-01',
|
||||
'2011-09-30',
|
||||
20,
|
||||
1,
|
||||
0.20000000000000001,
|
||||
4,
|
||||
],
|
||||
];
|
26
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/AMORLINC.php
vendored
Normal file
26
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/AMORLINC.php
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
<?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.14999999999999999,
|
||||
1,
|
||||
],
|
||||
[
|
||||
30,
|
||||
150,
|
||||
'2011-01-01',
|
||||
'2011-09-30',
|
||||
20,
|
||||
1,
|
||||
0.20000000000000001,
|
||||
4,
|
||||
],
|
||||
];
|
40
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/COUPDAYBS.php
vendored
Normal file
40
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/COUPDAYBS.php
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
// Settlement, Maturity, Frequency, Basis, Result
|
||||
|
||||
return [
|
||||
[
|
||||
71,
|
||||
'25-Jan-2007',
|
||||
'15-Nov-2008',
|
||||
2,
|
||||
1,
|
||||
],
|
||||
[
|
||||
66,
|
||||
'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,
|
||||
],
|
||||
];
|
61
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/COUPDAYS.php
vendored
Normal file
61
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/COUPDAYS.php
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
// Settlement, Maturity, Frequency, Basis, Result
|
||||
|
||||
return [
|
||||
[
|
||||
181,
|
||||
'25-Jan-2007',
|
||||
'15-Nov-2008',
|
||||
2,
|
||||
1,
|
||||
],
|
||||
[
|
||||
90,
|
||||
'2011-01-01',
|
||||
'2012-10-25',
|
||||
4,
|
||||
],
|
||||
[
|
||||
182.5,
|
||||
'25-Jan-2007',
|
||||
'15-Nov-2008',
|
||||
2,
|
||||
3,
|
||||
],
|
||||
[
|
||||
365,
|
||||
'25-Jan-2007',
|
||||
'15-Nov-2008',
|
||||
1,
|
||||
1,
|
||||
],
|
||||
[
|
||||
365,
|
||||
'25-Jan-2010',
|
||||
'15-Nov-2011',
|
||||
1,
|
||||
1,
|
||||
],
|
||||
[
|
||||
'#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,
|
||||
],
|
||||
];
|
40
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/COUPDAYSNC.php
vendored
Normal file
40
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/COUPDAYSNC.php
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
// Settlement, Maturity, Frequency, Basis, Result
|
||||
|
||||
return [
|
||||
[
|
||||
110,
|
||||
'25-Jan-2007',
|
||||
'15-Nov-2008',
|
||||
2,
|
||||
1,
|
||||
],
|
||||
[
|
||||
24,
|
||||
'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,
|
||||
],
|
||||
];
|
40
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/COUPNCD.php
vendored
Normal file
40
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/COUPNCD.php
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
// Settlement, Maturity, Frequency, Basis, Result
|
||||
|
||||
return [
|
||||
[
|
||||
39217,
|
||||
'25-Jan-2007',
|
||||
'15-Nov-2008',
|
||||
2,
|
||||
1,
|
||||
],
|
||||
[
|
||||
40568,
|
||||
'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,
|
||||
],
|
||||
];
|
48
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/COUPNUM.php
vendored
Normal file
48
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/COUPNUM.php
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
// Settlement, Maturity, Frequency, Basis, Result
|
||||
|
||||
return [
|
||||
[
|
||||
4,
|
||||
'25-Jan-2007',
|
||||
'15-Nov-2008',
|
||||
2,
|
||||
1,
|
||||
],
|
||||
[
|
||||
8,
|
||||
'2011-01-01',
|
||||
'2012-10-25',
|
||||
4,
|
||||
0,
|
||||
],
|
||||
[
|
||||
'#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,
|
||||
],
|
||||
[
|
||||
5,
|
||||
'01-Jan-2008',
|
||||
'31-Dec-2012',
|
||||
1,
|
||||
1,
|
||||
],
|
||||
];
|
40
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/COUPPCD.php
vendored
Normal file
40
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/COUPPCD.php
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
<?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,
|
||||
],
|
||||
];
|
87
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/CUMIPMT.php
vendored
Normal file
87
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/CUMIPMT.php
vendored
Normal file
@ -0,0 +1,87 @@
|
||||
<?php
|
||||
|
||||
// rate, nper, pv, start_period, end_period, type, result
|
||||
|
||||
return [
|
||||
[
|
||||
-11135.232130750999,
|
||||
0.0074999999999999997,
|
||||
360,
|
||||
125000,
|
||||
13,
|
||||
24,
|
||||
0,
|
||||
],
|
||||
[
|
||||
-937.5,
|
||||
0.0074999999999999997,
|
||||
360,
|
||||
125000,
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
],
|
||||
[
|
||||
-2294.9775375120998,
|
||||
0.0041666666669999998,
|
||||
60,
|
||||
50000,
|
||||
1,
|
||||
12,
|
||||
0,
|
||||
],
|
||||
[
|
||||
-1833.1000667254,
|
||||
0.0041666666669999998,
|
||||
60,
|
||||
50000,
|
||||
13,
|
||||
24,
|
||||
0,
|
||||
],
|
||||
[
|
||||
-1347.5920679425001,
|
||||
0.0041666666669999998,
|
||||
60,
|
||||
50000,
|
||||
25,
|
||||
36,
|
||||
0,
|
||||
],
|
||||
[
|
||||
-837.24455850309005,
|
||||
0.0041666666669999998,
|
||||
60,
|
||||
50000,
|
||||
37,
|
||||
48,
|
||||
0,
|
||||
],
|
||||
[
|
||||
-300.78670189938998,
|
||||
0.0041666666669999998,
|
||||
60,
|
||||
50000,
|
||||
49,
|
||||
60,
|
||||
0,
|
||||
],
|
||||
[
|
||||
'#VALUE!',
|
||||
0.0074999999999999997,
|
||||
360,
|
||||
125000,
|
||||
24,
|
||||
13,
|
||||
0,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
0.0074999999999999997,
|
||||
360,
|
||||
125000,
|
||||
24,
|
||||
13,
|
||||
2,
|
||||
],
|
||||
];
|
87
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/CUMPRINC.php
vendored
Normal file
87
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/CUMPRINC.php
vendored
Normal file
@ -0,0 +1,87 @@
|
||||
<?php
|
||||
|
||||
// rate, nper, pv, start_period, end_period, type, result
|
||||
|
||||
return [
|
||||
[
|
||||
-934.10712342088004,
|
||||
0.0074999999999999997,
|
||||
360,
|
||||
125000,
|
||||
13,
|
||||
24,
|
||||
0,
|
||||
],
|
||||
[
|
||||
-68.278271180977001,
|
||||
0.0074999999999999997,
|
||||
360,
|
||||
125000,
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
],
|
||||
[
|
||||
-9027.7626490046005,
|
||||
0.0041666666669999998,
|
||||
60,
|
||||
50000,
|
||||
1,
|
||||
12,
|
||||
0,
|
||||
],
|
||||
[
|
||||
-9489.6401197913001,
|
||||
0.0041666666669999998,
|
||||
60,
|
||||
50000,
|
||||
13,
|
||||
24,
|
||||
0,
|
||||
],
|
||||
[
|
||||
-9975.1481185740995,
|
||||
0.0041666666669999998,
|
||||
60,
|
||||
50000,
|
||||
25,
|
||||
36,
|
||||
0,
|
||||
],
|
||||
[
|
||||
-10485.495628014,
|
||||
0.0041666666669999998,
|
||||
60,
|
||||
50000,
|
||||
37,
|
||||
48,
|
||||
0,
|
||||
],
|
||||
[
|
||||
-11021.953484617001,
|
||||
0.0041666666669999998,
|
||||
60,
|
||||
50000,
|
||||
49,
|
||||
60,
|
||||
0,
|
||||
],
|
||||
[
|
||||
'#VALUE!',
|
||||
0.0074999999999999997,
|
||||
360,
|
||||
125000,
|
||||
24,
|
||||
13,
|
||||
0,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
0.0074999999999999997,
|
||||
360,
|
||||
125000,
|
||||
24,
|
||||
13,
|
||||
2,
|
||||
],
|
||||
];
|
134
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/DB.php
vendored
Normal file
134
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/DB.php
vendored
Normal file
@ -0,0 +1,134 @@
|
||||
<?php
|
||||
|
||||
// cost, salvage, life, period, month, result
|
||||
|
||||
return [
|
||||
[
|
||||
186083.33333333,
|
||||
1000000,
|
||||
100000,
|
||||
6,
|
||||
1,
|
||||
7,
|
||||
],
|
||||
[
|
||||
259639.41666667,
|
||||
1000000,
|
||||
100000,
|
||||
6,
|
||||
2,
|
||||
7,
|
||||
],
|
||||
[
|
||||
176814.44274999999,
|
||||
1000000,
|
||||
100000,
|
||||
6,
|
||||
3,
|
||||
7,
|
||||
],
|
||||
[
|
||||
120410.63551275,
|
||||
1000000,
|
||||
100000,
|
||||
6,
|
||||
4,
|
||||
7,
|
||||
],
|
||||
[
|
||||
81999.642784183001,
|
||||
1000000,
|
||||
100000,
|
||||
6,
|
||||
5,
|
||||
7,
|
||||
],
|
||||
[
|
||||
55841.756736028001,
|
||||
1000000,
|
||||
100000,
|
||||
6,
|
||||
6,
|
||||
7,
|
||||
],
|
||||
[
|
||||
15845.098473848,
|
||||
1000000,
|
||||
100000,
|
||||
6,
|
||||
7,
|
||||
7,
|
||||
],
|
||||
[
|
||||
1845.0,
|
||||
10000,
|
||||
1000,
|
||||
5,
|
||||
1,
|
||||
6,
|
||||
],
|
||||
[
|
||||
3009.1950000000002,
|
||||
10000,
|
||||
1000,
|
||||
5,
|
||||
2,
|
||||
6,
|
||||
],
|
||||
[
|
||||
1898.8020449999999,
|
||||
10000,
|
||||
1000,
|
||||
5,
|
||||
3,
|
||||
6,
|
||||
],
|
||||
[
|
||||
1198.1440903949999,
|
||||
10000,
|
||||
1000,
|
||||
5,
|
||||
4,
|
||||
6,
|
||||
],
|
||||
[
|
||||
756.02892103925001,
|
||||
10000,
|
||||
1000,
|
||||
5,
|
||||
5,
|
||||
6,
|
||||
],
|
||||
[
|
||||
238.52712458788,
|
||||
10000,
|
||||
1000,
|
||||
5,
|
||||
6,
|
||||
6,
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
0,
|
||||
0,
|
||||
5,
|
||||
6,
|
||||
6,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
-1000,
|
||||
100,
|
||||
5,
|
||||
6,
|
||||
6,
|
||||
],
|
||||
[
|
||||
'#VALUE!',
|
||||
'ABC',
|
||||
100,
|
||||
5,
|
||||
6,
|
||||
6,
|
||||
],
|
||||
];
|
115
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/DDB.php
vendored
Normal file
115
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/DDB.php
vendored
Normal file
@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
// cost, salvage, life, period, month, result
|
||||
|
||||
return [
|
||||
[
|
||||
0.13150684931507001,
|
||||
2400,
|
||||
300,
|
||||
36500,
|
||||
1,
|
||||
],
|
||||
[
|
||||
0.13149964346031001,
|
||||
2400,
|
||||
300,
|
||||
36500,
|
||||
2,
|
||||
],
|
||||
[
|
||||
0.13146362010870999,
|
||||
2400,
|
||||
300,
|
||||
36500,
|
||||
7,
|
||||
],
|
||||
[
|
||||
0.91843145432707995,
|
||||
2400,
|
||||
300,
|
||||
36500,
|
||||
7,
|
||||
14,
|
||||
],
|
||||
[
|
||||
40.0,
|
||||
2400,
|
||||
300,
|
||||
120,
|
||||
1,
|
||||
2,
|
||||
],
|
||||
[
|
||||
480.0,
|
||||
2400,
|
||||
300,
|
||||
10,
|
||||
1,
|
||||
2,
|
||||
],
|
||||
[
|
||||
306.0,
|
||||
2400,
|
||||
300,
|
||||
10,
|
||||
2,
|
||||
1.5,
|
||||
],
|
||||
[
|
||||
22.122547200000302,
|
||||
2400,
|
||||
300,
|
||||
10,
|
||||
10,
|
||||
],
|
||||
[
|
||||
4000.0,
|
||||
10000,
|
||||
1000,
|
||||
5,
|
||||
1,
|
||||
],
|
||||
[
|
||||
2400.0,
|
||||
10000,
|
||||
1000,
|
||||
5,
|
||||
2,
|
||||
],
|
||||
[
|
||||
1440.0,
|
||||
10000,
|
||||
1000,
|
||||
5,
|
||||
3,
|
||||
],
|
||||
[
|
||||
864.0,
|
||||
10000,
|
||||
1000,
|
||||
5,
|
||||
4,
|
||||
],
|
||||
[
|
||||
296.0,
|
||||
10000,
|
||||
1000,
|
||||
5,
|
||||
5,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
-2400,
|
||||
300,
|
||||
36500,
|
||||
1,
|
||||
],
|
||||
[
|
||||
'#VALUE!',
|
||||
'ABC',
|
||||
300,
|
||||
36500,
|
||||
1,
|
||||
],
|
||||
];
|
43
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/DISC.php
vendored
Normal file
43
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/DISC.php
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
// settlement, maturity, price, redemption, basis, result
|
||||
|
||||
return [
|
||||
[
|
||||
0.052420213,
|
||||
'2007-01-25',
|
||||
'2007-06-15',
|
||||
97.974999999999994,
|
||||
100,
|
||||
1,
|
||||
],
|
||||
[
|
||||
0.01,
|
||||
'2010-04-01',
|
||||
'2015-03-31',
|
||||
95,
|
||||
100,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
'2010-04-01',
|
||||
'2015-03-31',
|
||||
0,
|
||||
100,
|
||||
],
|
||||
[
|
||||
'#VALUE!',
|
||||
'2010-04-01',
|
||||
'2015-03-31',
|
||||
'ABC',
|
||||
100,
|
||||
],
|
||||
[
|
||||
'#VALUE!',
|
||||
'Invalid Date',
|
||||
'2007-06-15',
|
||||
97.974999999999994,
|
||||
100,
|
||||
1,
|
||||
],
|
||||
];
|
51
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/DOLLARDE.php
vendored
Normal file
51
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/DOLLARDE.php
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
// fractional_dollar, fraction, result
|
||||
|
||||
return [
|
||||
[
|
||||
1.125,
|
||||
1.02,
|
||||
16,
|
||||
],
|
||||
[
|
||||
1.3125,
|
||||
1.1000000000000001,
|
||||
32,
|
||||
],
|
||||
[
|
||||
1.0625,
|
||||
1.01,
|
||||
16,
|
||||
],
|
||||
[
|
||||
1.625,
|
||||
1.1000000000000001,
|
||||
16,
|
||||
],
|
||||
[
|
||||
1.09375,
|
||||
1.03,
|
||||
32,
|
||||
],
|
||||
[
|
||||
1.9375,
|
||||
1.3,
|
||||
32,
|
||||
],
|
||||
[
|
||||
1.375,
|
||||
1.1200000000000001,
|
||||
32,
|
||||
],
|
||||
[
|
||||
'#DIV/0!',
|
||||
1.2344999999999999,
|
||||
0,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
1.2344999999999999,
|
||||
-2,
|
||||
],
|
||||
];
|
51
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/DOLLARFR.php
vendored
Normal file
51
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/DOLLARFR.php
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
// decimal_dollar, fraction, result
|
||||
|
||||
return [
|
||||
[
|
||||
1.02,
|
||||
1.125,
|
||||
16,
|
||||
],
|
||||
[
|
||||
1.04,
|
||||
1.125,
|
||||
32,
|
||||
],
|
||||
[
|
||||
1.01,
|
||||
1.0625,
|
||||
16,
|
||||
],
|
||||
[
|
||||
1.1000000000000001,
|
||||
1.625,
|
||||
16,
|
||||
],
|
||||
[
|
||||
1.03,
|
||||
1.09375,
|
||||
32,
|
||||
],
|
||||
[
|
||||
1.3,
|
||||
1.9375,
|
||||
32,
|
||||
],
|
||||
[
|
||||
1.1200000000000001,
|
||||
1.375,
|
||||
32,
|
||||
],
|
||||
[
|
||||
'#DIV/0!',
|
||||
1.2344999999999999,
|
||||
0,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
1.2344999999999999,
|
||||
-2,
|
||||
],
|
||||
];
|
31
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/EFFECT.php
vendored
Normal file
31
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/EFFECT.php
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
// nominal_rate, npery, Result
|
||||
|
||||
return [
|
||||
[
|
||||
0.053542667370758003,
|
||||
0.052499999999999998,
|
||||
4,
|
||||
],
|
||||
[
|
||||
0.103812890625,
|
||||
0.10000000000000001,
|
||||
4,
|
||||
],
|
||||
[
|
||||
0.10249999999999999,
|
||||
0.10000000000000001,
|
||||
2,
|
||||
],
|
||||
[
|
||||
0.025156250000000002,
|
||||
0.025000000000000001,
|
||||
2,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
1,
|
||||
0,
|
||||
],
|
||||
];
|
65
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/FV.php
vendored
Normal file
65
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/FV.php
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
// rate, nper, pmt, pv, type, Result
|
||||
|
||||
return [
|
||||
[
|
||||
2581.4033740600998,
|
||||
0.0050000000000000001,
|
||||
10,
|
||||
-200,
|
||||
-500,
|
||||
1,
|
||||
],
|
||||
[
|
||||
12682.503013197,
|
||||
0.01,
|
||||
12,
|
||||
-1000,
|
||||
],
|
||||
[
|
||||
82846.246372417998,
|
||||
0.0091666666670000008,
|
||||
35,
|
||||
-2000,
|
||||
null,
|
||||
1,
|
||||
],
|
||||
[
|
||||
2301.4018303408998,
|
||||
0.0050000000000000001,
|
||||
12,
|
||||
-100,
|
||||
-1000,
|
||||
1,
|
||||
],
|
||||
[
|
||||
68006.082841536001,
|
||||
0.0041666666669999998,
|
||||
60,
|
||||
-1000,
|
||||
],
|
||||
[
|
||||
39729.460894165997,
|
||||
0.025000000000000001,
|
||||
16,
|
||||
-2000,
|
||||
0,
|
||||
1,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
0.10000000000000001,
|
||||
12,
|
||||
-100,
|
||||
0,
|
||||
2,
|
||||
],
|
||||
[
|
||||
1300,
|
||||
0.0,
|
||||
12,
|
||||
-100,
|
||||
-100,
|
||||
],
|
||||
];
|
39
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/FVSCHEDULE.php
vendored
Normal file
39
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/FVSCHEDULE.php
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
// principal, schedule, Result
|
||||
|
||||
return [
|
||||
[
|
||||
1.3308899999999999,
|
||||
1,
|
||||
[
|
||||
[
|
||||
0.089999999999999997,
|
||||
0.11,
|
||||
0.10000000000000001,
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
13.3089,
|
||||
10,
|
||||
[
|
||||
0.089999999999999997,
|
||||
0.11,
|
||||
0.10000000000000001,
|
||||
],
|
||||
],
|
||||
[
|
||||
12223.614571874999,
|
||||
10000,
|
||||
[
|
||||
[
|
||||
0.050000000000000003,
|
||||
0.050000000000000003,
|
||||
0.035000000000000003,
|
||||
0.035000000000000003,
|
||||
0.035000000000000003,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
45
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/INTRATE.php
vendored
Normal file
45
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/INTRATE.php
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
// Settlement, Maturity, Investment, Redemption, Basis, Result
|
||||
|
||||
return [
|
||||
[
|
||||
0.057680000000000002,
|
||||
'2008-02-15',
|
||||
'2008-05-15',
|
||||
1000000,
|
||||
1014420,
|
||||
2,
|
||||
],
|
||||
[
|
||||
0.22500000000000001,
|
||||
'2005-04-01',
|
||||
'2010-03-31',
|
||||
1000,
|
||||
2125,
|
||||
],
|
||||
[
|
||||
'#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,
|
||||
],
|
||||
];
|
70
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/IPMT.php
vendored
Normal file
70
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/IPMT.php
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
// rate, per, nper, pv, fv, type, Result
|
||||
|
||||
return [
|
||||
[
|
||||
-22.406893015021002,
|
||||
0.0083333333329999992,
|
||||
3,
|
||||
3,
|
||||
8000,
|
||||
],
|
||||
[
|
||||
-292.44712990937001,
|
||||
0.10000000000000001,
|
||||
3,
|
||||
3,
|
||||
8000,
|
||||
],
|
||||
[
|
||||
-208.33333335,
|
||||
0.0041666666669999998,
|
||||
1,
|
||||
60,
|
||||
50000,
|
||||
],
|
||||
[
|
||||
-205.26988189617001,
|
||||
0.0041666666669999998,
|
||||
2,
|
||||
60,
|
||||
50000,
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
0.0087500000000000008,
|
||||
1,
|
||||
8,
|
||||
10000,
|
||||
5000,
|
||||
1,
|
||||
],
|
||||
[
|
||||
-70.968650395558996,
|
||||
0.0087500000000000008,
|
||||
2,
|
||||
8,
|
||||
10000,
|
||||
5000,
|
||||
1,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
0.0050000000000000001,
|
||||
2,
|
||||
8,
|
||||
2500,
|
||||
200,
|
||||
6,
|
||||
],
|
||||
[
|
||||
'#VALUE!',
|
||||
0.0050000000000000001,
|
||||
8,
|
||||
2,
|
||||
2500,
|
||||
200,
|
||||
1,
|
||||
],
|
||||
];
|
61
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/IRR.php
vendored
Normal file
61
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/IRR.php
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
// values, guess, Result
|
||||
|
||||
return [
|
||||
[
|
||||
-0.02124484827341,
|
||||
[
|
||||
-70000,
|
||||
12000,
|
||||
15000,
|
||||
18000,
|
||||
21000,
|
||||
],
|
||||
],
|
||||
[
|
||||
0.086630948036519995,
|
||||
[
|
||||
-70000,
|
||||
12000,
|
||||
15000,
|
||||
18000,
|
||||
21000,
|
||||
26000,
|
||||
],
|
||||
],
|
||||
[
|
||||
-0.1821374641455,
|
||||
[
|
||||
-70000,
|
||||
12000,
|
||||
15000,
|
||||
18000,
|
||||
],
|
||||
0.10000000000000001,
|
||||
],
|
||||
[
|
||||
-0.13618951095869,
|
||||
[
|
||||
-100,
|
||||
[
|
||||
20,
|
||||
24,
|
||||
28.800000000000001,
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
0.13057575637152699,
|
||||
[
|
||||
-100,
|
||||
[
|
||||
20,
|
||||
24,
|
||||
28.800000000000001,
|
||||
34.560000000000002,
|
||||
41.469999999999999,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
34
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/ISPMT.php
vendored
Normal file
34
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/ISPMT.php
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
// rate, per, nper, pv, result
|
||||
|
||||
return [
|
||||
[
|
||||
-64814.814812222001,
|
||||
0.0083333333329999992,
|
||||
1,
|
||||
36,
|
||||
8000000,
|
||||
],
|
||||
[
|
||||
-533333.33333333,
|
||||
0.10000000000000001,
|
||||
1,
|
||||
3,
|
||||
8000000,
|
||||
],
|
||||
[
|
||||
-204.86111112750001,
|
||||
0.0041666666669999998,
|
||||
1,
|
||||
60,
|
||||
50000,
|
||||
],
|
||||
[
|
||||
-201.38888890499999,
|
||||
0.0041666666669999998,
|
||||
2,
|
||||
60,
|
||||
50000,
|
||||
],
|
||||
];
|
77
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/MIRR.php
vendored
Normal file
77
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/MIRR.php
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
// values, finance_rate, reinvestment_rate, Result
|
||||
|
||||
return [
|
||||
[
|
||||
0.12609413036591,
|
||||
[
|
||||
-120000,
|
||||
[
|
||||
39000,
|
||||
30000,
|
||||
21000,
|
||||
37000,
|
||||
46000,
|
||||
],
|
||||
],
|
||||
0.10000000000000001,
|
||||
0.12,
|
||||
],
|
||||
[
|
||||
-0.048044655249981,
|
||||
[
|
||||
-120000,
|
||||
[
|
||||
39000,
|
||||
30000,
|
||||
21000,
|
||||
],
|
||||
],
|
||||
0.10000000000000001,
|
||||
0.12,
|
||||
],
|
||||
[
|
||||
0.13475911082830999,
|
||||
[
|
||||
-120000,
|
||||
[
|
||||
39000,
|
||||
30000,
|
||||
21000,
|
||||
37000,
|
||||
46000,
|
||||
],
|
||||
],
|
||||
0.10000000000000001,
|
||||
0.14000000000000001,
|
||||
],
|
||||
[
|
||||
0.74021752686287001,
|
||||
[
|
||||
-100,
|
||||
[
|
||||
12,
|
||||
14,
|
||||
11,
|
||||
],
|
||||
],
|
||||
5.5,
|
||||
5,
|
||||
],
|
||||
[
|
||||
1.8579321744785,
|
||||
[
|
||||
-100,
|
||||
[
|
||||
12,
|
||||
14,
|
||||
11,
|
||||
13,
|
||||
16,
|
||||
],
|
||||
],
|
||||
5.5,
|
||||
5,
|
||||
],
|
||||
];
|
31
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/NOMINAL.php
vendored
Normal file
31
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/NOMINAL.php
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
// effect_rate, npery, result
|
||||
|
||||
return [
|
||||
[
|
||||
0.052500319868356002,
|
||||
0.053543,
|
||||
4,
|
||||
],
|
||||
[
|
||||
0.096454756337780001,
|
||||
0.10000000000000001,
|
||||
4,
|
||||
],
|
||||
[
|
||||
0.097617696340302998,
|
||||
0.10000000000000001,
|
||||
2,
|
||||
],
|
||||
[
|
||||
0.024718035238113001,
|
||||
0.025000000000000001,
|
||||
12,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
-0.025000000000000001,
|
||||
12,
|
||||
],
|
||||
];
|
73
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/NPER.php
vendored
Normal file
73
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/NPER.php
vendored
Normal file
@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
// rate, pmt, pv, fv, type, result
|
||||
|
||||
return [
|
||||
[
|
||||
59.673865674295001,
|
||||
0.01,
|
||||
-100,
|
||||
-1000,
|
||||
10000,
|
||||
1,
|
||||
],
|
||||
[
|
||||
60.082122853762002,
|
||||
0.01,
|
||||
-100,
|
||||
-1000,
|
||||
10000,
|
||||
],
|
||||
[
|
||||
-9.5785940398132006,
|
||||
0.01,
|
||||
-100,
|
||||
-1000,
|
||||
],
|
||||
[
|
||||
54.787577259999999,
|
||||
0.0033333333329999999,
|
||||
-1000,
|
||||
50000,
|
||||
],
|
||||
[
|
||||
11.90373729,
|
||||
0.014999999999999999,
|
||||
-1200,
|
||||
9000,
|
||||
5000,
|
||||
1,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
0.014999999999999999,
|
||||
-1200,
|
||||
9000,
|
||||
5000,
|
||||
2,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
0.014999999999999999,
|
||||
0.0,
|
||||
0.0,
|
||||
5000,
|
||||
1,
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
0.0,
|
||||
0.0,
|
||||
-500,
|
||||
5000,
|
||||
1,
|
||||
],
|
||||
[
|
||||
-2.0,
|
||||
0.0,
|
||||
-50,
|
||||
-250,
|
||||
150,
|
||||
1,
|
||||
],
|
||||
];
|
42
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/NPV.php
vendored
Normal file
42
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/NPV.php
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
// rate, values, result
|
||||
|
||||
return [
|
||||
[
|
||||
1188.4434123352,
|
||||
0.10000000000000001,
|
||||
-10000,
|
||||
3000,
|
||||
4200,
|
||||
6800,
|
||||
],
|
||||
[
|
||||
41922.061554931999,
|
||||
0.080000000000000002,
|
||||
8000,
|
||||
9200,
|
||||
10000,
|
||||
12000,
|
||||
14500,
|
||||
],
|
||||
[
|
||||
36250.534912984003,
|
||||
0.080000000000000002,
|
||||
8000,
|
||||
9200,
|
||||
10000,
|
||||
12000,
|
||||
14500,
|
||||
-9000,
|
||||
],
|
||||
[
|
||||
12678.677633095,
|
||||
0.050000000000000003,
|
||||
2000,
|
||||
2400,
|
||||
2900,
|
||||
3500,
|
||||
4100,
|
||||
],
|
||||
];
|
36
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/PDURATION.php
vendored
Normal file
36
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/PDURATION.php
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
[
|
||||
'#VALUE!',
|
||||
['ABC', 'DEF', 'GHI'],
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
[0.0, 0.0, 0.0],
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
[0.05, 10.0, -2.0],
|
||||
],
|
||||
[
|
||||
10.33803507,
|
||||
[0.04, 10000, 15000],
|
||||
],
|
||||
[
|
||||
3.859866162622655,
|
||||
[0.025, 2000, 2200],
|
||||
],
|
||||
[
|
||||
87.6054764193714,
|
||||
[0.025 / 12, 1000, 1200],
|
||||
],
|
||||
[
|
||||
3.5644379226484437,
|
||||
[0.03, 9000, 10000],
|
||||
],
|
||||
[
|
||||
14.206699082890474,
|
||||
[0.05, 50, 100],
|
||||
],
|
||||
];
|
96
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/PRICE.php
vendored
Normal file
96
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/PRICE.php
vendored
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
|
||||
// Settlement, Maturity, Rate, Yield, Redemption, Frequency, Basis, Result
|
||||
|
||||
return [
|
||||
[
|
||||
94.6343616213221,
|
||||
'15-Feb-2008',
|
||||
'15-Nov-2017',
|
||||
0.057500000000000002,
|
||||
0.065000000000000002,
|
||||
100,
|
||||
2,
|
||||
0,
|
||||
],
|
||||
[
|
||||
94.635449207877201,
|
||||
'15-Feb-2008',
|
||||
'15-Nov-2017',
|
||||
0.057500000000000002,
|
||||
0.065000000000000002,
|
||||
100,
|
||||
2,
|
||||
1,
|
||||
],
|
||||
[
|
||||
94.636564030025099,
|
||||
'15-Feb-2008',
|
||||
'15-Nov-2017',
|
||||
0.057500000000000002,
|
||||
0.065000000000000002,
|
||||
100,
|
||||
2,
|
||||
2,
|
||||
],
|
||||
[
|
||||
94.635174796784497,
|
||||
'15-Feb-2008',
|
||||
'15-Nov-2017',
|
||||
0.057500000000000002,
|
||||
0.065000000000000002,
|
||||
100,
|
||||
2,
|
||||
3,
|
||||
],
|
||||
[
|
||||
110.83448359321601,
|
||||
'01-Apr-2012',
|
||||
'31-Mar-2020',
|
||||
0.12,
|
||||
0.10000000000000001,
|
||||
100,
|
||||
2,
|
||||
null,
|
||||
],
|
||||
[
|
||||
110.834537395859,
|
||||
'01-Apr-2012',
|
||||
'31-Mar-2020',
|
||||
0.12,
|
||||
0.10000000000000001,
|
||||
100,
|
||||
2,
|
||||
1,
|
||||
],
|
||||
[
|
||||
110.83448359321601,
|
||||
'01-Apr-2012',
|
||||
'31-Mar-2020',
|
||||
0.12,
|
||||
0.10000000000000001,
|
||||
100,
|
||||
2,
|
||||
2,
|
||||
],
|
||||
[
|
||||
110.83452855143901,
|
||||
'01-Apr-2012',
|
||||
'31-Mar-2020',
|
||||
0.12,
|
||||
0.10000000000000001,
|
||||
100,
|
||||
2,
|
||||
3,
|
||||
],
|
||||
[
|
||||
110.921732963198,
|
||||
'01-Apr-2012',
|
||||
'31-Mar-2020',
|
||||
0.12,
|
||||
0.10000000000000001,
|
||||
100,
|
||||
4,
|
||||
3,
|
||||
],
|
||||
];
|
12
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/PRICEDISC.php
vendored
Normal file
12
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/PRICEDISC.php
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
[
|
||||
90.0,
|
||||
['01-Apr-2017', '31-Mar-2021', 0.025, 100],
|
||||
],
|
||||
[
|
||||
97.6311475409836,
|
||||
['2008-02-15', '2008-11-30', 0.03, 100, 1],
|
||||
],
|
||||
];
|
24
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/PV.php
vendored
Normal file
24
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/PV.php
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
[
|
||||
-52990.70632392715,
|
||||
[0.05 / 12, 60, 1000],
|
||||
],
|
||||
[
|
||||
-26762.755452881098,
|
||||
[0.10 / 4, 16, 2000, 0, 1],
|
||||
],
|
||||
[
|
||||
-5555.6058459337655,
|
||||
[0.075 / 12, 2 * 12, 250, null, 0],
|
||||
],
|
||||
[
|
||||
-9252.072719337915,
|
||||
[0.06 / 52, 4 * 52, 50, null, 1],
|
||||
],
|
||||
[
|
||||
-762.8840472202697,
|
||||
[0.0525 / 1, 10 * 1, 100, null, 0],
|
||||
],
|
||||
];
|
72
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/RATE.php
vendored
Normal file
72
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/RATE.php
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
// Periods, Payment, Present Value, Future Value, Type, Guess, Result
|
||||
|
||||
return [
|
||||
[
|
||||
0.0077014724882014003,
|
||||
48,
|
||||
-200,
|
||||
8000,
|
||||
],
|
||||
[
|
||||
0.046781916422493401,
|
||||
60,
|
||||
-6000,
|
||||
120000,
|
||||
],
|
||||
[
|
||||
-0.020442952219356499,
|
||||
60,
|
||||
-1000,
|
||||
120000,
|
||||
],
|
||||
[
|
||||
0.015130843902343399,
|
||||
24,
|
||||
-250,
|
||||
5000,
|
||||
],
|
||||
[
|
||||
0.016550119066711999,
|
||||
24,
|
||||
-250,
|
||||
5000,
|
||||
null,
|
||||
1,
|
||||
],
|
||||
[
|
||||
0.087499997684093694,
|
||||
208,
|
||||
-700,
|
||||
8000,
|
||||
],
|
||||
[
|
||||
0.087113755605863596,
|
||||
10,
|
||||
-1000,
|
||||
6500,
|
||||
],
|
||||
[
|
||||
0.048472127283572801,
|
||||
6,
|
||||
-1000,
|
||||
100000,
|
||||
-126068,
|
||||
],
|
||||
[
|
||||
0.030272873827543501,
|
||||
6,
|
||||
1000,
|
||||
100000,
|
||||
-126068,
|
||||
],
|
||||
[
|
||||
0.030272873827543699,
|
||||
6,
|
||||
-1000,
|
||||
-100000,
|
||||
126068,
|
||||
0,
|
||||
],
|
||||
];
|
28
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/RRI.php
vendored
Normal file
28
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/RRI.php
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
[
|
||||
'#VALUE!',
|
||||
['ABC', 'DEF', 'GHI'],
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
[0.0, 10.0, 20.0],
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
[0.05, 10.0, -2.0],
|
||||
],
|
||||
[
|
||||
0.04137974399241062,
|
||||
[10, 10000, 15000],
|
||||
],
|
||||
[
|
||||
0.00099330737629133,
|
||||
[96, 10000, 11000],
|
||||
],
|
||||
[
|
||||
0.6747967875721199,
|
||||
[10, 70, 12154],
|
||||
],
|
||||
];
|
40
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/SLN.php
vendored
Normal file
40
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/SLN.php
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
[
|
||||
1800,
|
||||
[10000, 1000, 5],
|
||||
],
|
||||
[
|
||||
1000,
|
||||
[10000, 5000, 5],
|
||||
],
|
||||
[
|
||||
1142.857142857143,
|
||||
[8000, 0, 7],
|
||||
],
|
||||
[
|
||||
50,
|
||||
[500, 100, 8],
|
||||
],
|
||||
[
|
||||
2250,
|
||||
[30000, 7500, 10],
|
||||
],
|
||||
[
|
||||
166.66666666666666,
|
||||
[1200, 200, 6],
|
||||
],
|
||||
[
|
||||
3750,
|
||||
[45000, 7500, 10],
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
[10000, 1000, -1],
|
||||
],
|
||||
[
|
||||
'#VALUE!',
|
||||
['INVALID', 1000, -1],
|
||||
],
|
||||
];
|
44
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/SYD.php
vendored
Normal file
44
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/SYD.php
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
[
|
||||
3000,
|
||||
[10000, 1000, 5, 1],
|
||||
],
|
||||
[
|
||||
2400,
|
||||
[10000, 1000, 5, 2],
|
||||
],
|
||||
[
|
||||
1800,
|
||||
[10000, 1000, 5, 3],
|
||||
],
|
||||
[
|
||||
1200,
|
||||
[10000, 1000, 5, 4],
|
||||
],
|
||||
[
|
||||
600,
|
||||
[10000, 1000, 5, 5],
|
||||
],
|
||||
[
|
||||
1428.5714285714287,
|
||||
[8000, 0, 7, 3],
|
||||
],
|
||||
[
|
||||
4090.909090909091,
|
||||
[30000, 7500, 10, 1],
|
||||
],
|
||||
[
|
||||
409.09090909090907,
|
||||
[30000, 7500, 10, 10],
|
||||
],
|
||||
[
|
||||
'#NUM!',
|
||||
[10000, 1000, 5, 10],
|
||||
],
|
||||
[
|
||||
'#VALUE!',
|
||||
['INVALID', 1000, 5, 1],
|
||||
],
|
||||
];
|
71
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/XIRR.php
vendored
Normal file
71
inc/vendor/phpoffice/phpspreadsheet/tests/data/Calculation/Financial/XIRR.php
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
// values, dates, guess, Result
|
||||
|
||||
return [
|
||||
[
|
||||
[
|
||||
-10000,
|
||||
[
|
||||
2750,
|
||||
4250,
|
||||
3250,
|
||||
2750,
|
||||
46000,
|
||||
],
|
||||
],
|
||||
[
|
||||
'2008-01-01',
|
||||
[
|
||||
'2008-03-01',
|
||||
'2008-10-30',
|
||||
'2009-02-15',
|
||||
'2009-04-01',
|
||||
],
|
||||
],
|
||||
0.10000000000000001,
|
||||
0.373362535,
|
||||
],
|
||||
[
|
||||
[
|
||||
-100,
|
||||
[
|
||||
20,
|
||||
40,
|
||||
25,
|
||||
],
|
||||
],
|
||||
[
|
||||
'2010-01-01',
|
||||
[
|
||||
'2010-04-01',
|
||||
'2010-10-01',
|
||||
'2011-02-01',
|
||||
],
|
||||
],
|
||||
-0.3024,
|
||||
],
|
||||
[
|
||||
[
|
||||
-100,
|
||||
[
|
||||
20,
|
||||
40,
|
||||
25,
|
||||
8,
|
||||
15,
|
||||
],
|
||||
],
|
||||
[
|
||||
'2010-01-01',
|
||||
[
|
||||
'2010-04-01',
|
||||
'2010-10-01',
|
||||
'2011-02-01',
|
||||
'2011-03-01',
|
||||
'2011-06-01',
|
||||
],
|
||||
],
|
||||
0.20949999999999999,
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user