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

116 lines
1.4 KiB
PHP
Raw Normal View History

<?php
// cost, salvage, life, period, month, result
return [
[
2400,
300,
36500,
1,
0.13150684931507001,
],
[
2400,
300,
36500,
2,
0.13149964346031001,
],
[
2400,
300,
36500,
7,
0.13146362010870999,
],
[
2400,
300,
36500,
7,
14,
0.91843145432707995,
],
[
2400,
300,
120,
1,
2,
40.0,
],
[
2400,
300,
10,
1,
2,
480.0,
],
[
2400,
300,
10,
2,
1.5,
306.0,
],
[
2400,
300,
10,
10,
22.122547200000302,
],
[
10000,
1000,
5,
1,
4000.0,
],
[
10000,
1000,
5,
2,
2400.0,
],
[
10000,
1000,
5,
3,
1440.0,
],
[
10000,
1000,
5,
4,
864.0,
],
[
10000,
1000,
5,
5,
296.0,
],
[
-2400,
300,
36500,
1,
'#NUM!',
],
[
'ABC',
300,
36500,
1,
'#VALUE!',
],
];