PhpSpreadsheet/tests/data/Calculation/Financial
Mark Baker d346318c2b
Start work on breaking down some of the Financial Excel functions (#1941)
* Start work on breaking down some of the Financial Excel functions
* Unhappy path unit tests for Treasury Bill functions
* Codebase for Treasury Bills includes logic for a different days between settlement and maturity calculation for OpenOffice; but Open/Libre Office now uses the Excel days calculation, so this discrepancy between packages is no longer required
* We've already converted the Settlement and Maturity dates to Excel timestamps, so there's no need to try doing it again when calculating the days between Settlement and Maturity
* Add Unit Tests for the Days per Year helper function
* Extract Interest Rate functions - EFFECT() and NOMINAL() - with additional validation, and unhappy path unit tests
* First pass at extracting the Coupon Excel functions
* Simplify the validation methods
* Extended unit tests to cover all combinations of frequency and basis, including leap years
Fix for COUPDAYSNC() when basis is US 360 and settlement date is the last day of the month
* Ensure that all Financial function code uses the new Helpers class for Days Per Year
2021-03-20 18:40:53 +01:00
..
ACCRINT.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
ACCRINTM.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
AMORDEGRC.php Update PPMT & IPMT implementation to better reflect excel behaviour. Update CUMPRINC & CUMIPMT implementation to prevent a crash while trying to add a string to a number. Update AMORLINC & AMORDEGRC to prevent crash when trying to multiply a string by a number. Update related unit tests. Update changelog to describe what we fixed. (#1840) 2021-02-12 18:04:52 +01:00
AMORLINC.php Update PPMT & IPMT implementation to better reflect excel behaviour. Update CUMPRINC & CUMIPMT implementation to prevent a crash while trying to add a string to a number. Update AMORLINC & AMORDEGRC to prevent crash when trying to multiply a string by a number. Update related unit tests. Update changelog to describe what we fixed. (#1840) 2021-02-12 18:04:52 +01:00
COUPDAYBS.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
COUPDAYS.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
COUPDAYSNC.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
COUPNCD.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
COUPNUM.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
COUPPCD.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
CUMIPMT.php Update PPMT & IPMT implementation to better reflect excel behaviour. Update CUMPRINC & CUMIPMT implementation to prevent a crash while trying to add a string to a number. Update AMORLINC & AMORDEGRC to prevent crash when trying to multiply a string by a number. Update related unit tests. Update changelog to describe what we fixed. (#1840) 2021-02-12 18:04:52 +01:00
CUMPRINC.php Update PPMT & IPMT implementation to better reflect excel behaviour. Update CUMPRINC & CUMIPMT implementation to prevent a crash while trying to add a string to a number. Update AMORLINC & AMORDEGRC to prevent crash when trying to multiply a string by a number. Update related unit tests. Update changelog to describe what we fixed. (#1840) 2021-02-12 18:04:52 +01:00
DB.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
DDB.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
DISC.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
DOLLARDE.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
DOLLARFR.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
DaysPerYear.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
EFFECT.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
FV.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
FVSCHEDULE.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
INTRATE.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
IPMT.php Update PPMT & IPMT implementation to better reflect excel behaviour. Update CUMPRINC & CUMIPMT implementation to prevent a crash while trying to add a string to a number. Update AMORLINC & AMORDEGRC to prevent crash when trying to multiply a string by a number. Update related unit tests. Update changelog to describe what we fixed. (#1840) 2021-02-12 18:04:52 +01:00
IRR.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
ISPMT.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
MIRR.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
NOMINAL.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
NPER.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
NPV.php Use proper syntax for variadic functions 2017-01-23 15:01:20 +09:00
PDURATION.php Add further new Functions introduced in MS Excel 2013 and 2016 (#608) 2018-07-22 19:17:04 +01:00
PRICE.php Fix RATE, PRICE, XIRR, and XNPV Functions (#1456) 2020-05-17 19:50:01 +09:00
PRICE3.php Fix RATE, PRICE, XIRR, and XNPV Functions (#1456) 2020-05-17 19:50:01 +09:00
PRICEDISC.php Add further new Functions introduced in MS Excel 2013 and 2016 (#608) 2018-07-22 19:17:04 +01:00
PRICEMAT.php Additional unit tests for previously untested financial functions (#1815) 2021-01-30 18:45:31 +01:00
PV.php Add further new Functions introduced in MS Excel 2013 and 2016 (#608) 2018-07-22 19:17:04 +01:00
RATE.php Fix RATE, PRICE, XIRR, and XNPV Functions (#1456) 2020-05-17 19:50:01 +09:00
RECEIVED.php Additional unit tests for previously untested financial functions (#1815) 2021-01-30 18:45:31 +01:00
RRI.php Add further new Functions introduced in MS Excel 2013 and 2016 (#608) 2018-07-22 19:17:04 +01:00
SLN.php Add further new Functions introduced in MS Excel 2013 and 2016 (#608) 2018-07-22 19:17:04 +01:00
SYD.php Add further new Functions introduced in MS Excel 2013 and 2016 (#608) 2018-07-22 19:17:04 +01:00
TBILLEQ.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
TBILLPRICE.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
TBILLYIELD.php Start work on breaking down some of the Financial Excel functions (#1941) 2021-03-20 18:40:53 +01:00
XIRR.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
XNPV.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
YIELDDISC.php Additional unit tests for previously untested financial functions (#1815) 2021-01-30 18:45:31 +01:00
YIELDMAT.php Additional unit tests for previously untested financial functions (#1815) 2021-01-30 18:45:31 +01:00