@sheetxl/formulas-extended 0.8.0-beta.1 → 0.8.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/browser/cjs/B4ANcw0mAmhe2Aeb.cjs +1 -0
  2. package/browser/cjs/B6IXpae7f0J8Ocq6.cjs +1 -0
  3. package/browser/cjs/Bncc0oXhFMdj_HuR.cjs +1 -0
  4. package/browser/cjs/C4cZxb9nRtzTCA40.cjs +1 -0
  5. package/browser/cjs/{lEQC21-Sk4lwHy2r.cjs → CFxueP0tbpmvY1Ip.cjs} +1 -1
  6. package/browser/cjs/CRcv32tHTbGSGtkh.cjs +1 -0
  7. package/browser/cjs/CaJGoNwTL6pAJ6a4.cjs +1 -0
  8. package/browser/cjs/CfXcRa4RlFmqU0Op.cjs +1 -0
  9. package/browser/cjs/{CnZfa45XxA-9Jhmp.cjs → DRmo6uoGoqtiVff8.cjs} +1 -1
  10. package/browser/cjs/DSXLVieENYN9qXYl.cjs +1 -0
  11. package/browser/cjs/DpFg69dDCPoOK2BY.cjs +1 -0
  12. package/browser/cjs/PmwvZPFhqmL4DO58.cjs +1 -0
  13. package/browser/cjs/SATfdSwNygvlOSKC.cjs +1 -0
  14. package/browser/cjs/XRCcogT-Iqd3Wv6R.cjs +1 -0
  15. package/browser/cjs/iYn00uzmSLl2T0oN.cjs +1 -0
  16. package/browser/cjs/index.cjs +1 -1
  17. package/browser/esm/{B1VmvhXuEn7zaTB9.mjs → B819DNjPdbTwz9F1.mjs} +1 -1
  18. package/{node/esm/COqdI1LYTHd9oLA6.mjs → browser/esm/BPDTXAH_YiFBVS9b.mjs} +1 -1
  19. package/{node/esm/DodhOXkSzelSxHmB.mjs → browser/esm/Bil0YAk5yZiRX2y1.mjs} +27 -29
  20. package/browser/esm/{DpoZ7h1ScIJvbOY9.mjs → Bsu4BOOlbAHpAp8R.mjs} +5 -5
  21. package/browser/esm/BtB39tHAccv8ITPI.mjs +119 -0
  22. package/{node/esm/srpVt74r2zbvm1N0.mjs → browser/esm/BxTcfN8h_FE-sbSK.mjs} +5 -5
  23. package/browser/esm/{BFnDPCjxJcoIItFa.mjs → C6Qt3r7mhw1LR02X.mjs} +3 -3
  24. package/browser/esm/C7p2YYAK6S2mN92V.mjs +19 -0
  25. package/browser/esm/CBsy5mA5btmVkbzR.mjs +32 -0
  26. package/{node/esm/BuGemmv84T8m0wqw.mjs → browser/esm/CIHlNxbWDUWI5fd8.mjs} +1 -1
  27. package/{node/esm/vu0NRDeeTbEHPMYS.mjs → browser/esm/CntAjIR6qmdYZXg0.mjs} +2 -2
  28. package/browser/esm/CpVnCV52v4qSBk79.mjs +33 -0
  29. package/browser/esm/D62u7Lj1Nd9ZM4Rp.mjs +58 -0
  30. package/{node/esm/CnVJ8GAsshRjRGA-.mjs → browser/esm/Dov9_ZXeOSh41yWn.mjs} +2 -2
  31. package/browser/esm/{DY3kG36QGyDbrANO.mjs → RHxlSf1j-K7Bdtwt.mjs} +1 -1
  32. package/browser/esm/YWvMccjlBVoxmNN_.mjs +47 -0
  33. package/browser/esm/_cE9OKmzmk6MyRKQ.mjs +37 -0
  34. package/browser/esm/index.mjs +3283 -1677
  35. package/browser/esm/r21pRf-kqnnAD611.mjs +32 -0
  36. package/{node/esm/BRwwvGaJ6HvkxjFC.mjs → browser/esm/v2vXc6oQz1MG0L1T.mjs} +1 -1
  37. package/{node/esm/Bma3CN4_Nec6_4n7.mjs → browser/esm/vMGzN0Xt0WnzZiH5.mjs} +6 -6
  38. package/node/esm/{B1VmvhXuEn7zaTB9.mjs → B819DNjPdbTwz9F1.mjs} +1 -1
  39. package/{browser/esm/COqdI1LYTHd9oLA6.mjs → node/esm/BPDTXAH_YiFBVS9b.mjs} +1 -1
  40. package/{browser/esm/DodhOXkSzelSxHmB.mjs → node/esm/Bil0YAk5yZiRX2y1.mjs} +27 -29
  41. package/node/esm/{DpoZ7h1ScIJvbOY9.mjs → Bsu4BOOlbAHpAp8R.mjs} +5 -5
  42. package/node/esm/BtB39tHAccv8ITPI.mjs +119 -0
  43. package/{browser/esm/srpVt74r2zbvm1N0.mjs → node/esm/BxTcfN8h_FE-sbSK.mjs} +5 -5
  44. package/node/esm/CBsy5mA5btmVkbzR.mjs +32 -0
  45. package/{browser/esm/BuGemmv84T8m0wqw.mjs → node/esm/CIHlNxbWDUWI5fd8.mjs} +1 -1
  46. package/{browser/esm/vu0NRDeeTbEHPMYS.mjs → node/esm/CntAjIR6qmdYZXg0.mjs} +2 -2
  47. package/node/esm/CpVnCV52v4qSBk79.mjs +33 -0
  48. package/node/esm/D62u7Lj1Nd9ZM4Rp.mjs +58 -0
  49. package/{browser/esm/CnVJ8GAsshRjRGA-.mjs → node/esm/Dov9_ZXeOSh41yWn.mjs} +2 -2
  50. package/node/esm/{BQyZVLTMNFLbjVap.mjs → LF8AasftSZOpXqHe.mjs} +3 -3
  51. package/node/esm/YWvMccjlBVoxmNN_.mjs +47 -0
  52. package/node/esm/YzY_Aik1Q_7Ay4JY.mjs +19 -0
  53. package/node/esm/_cE9OKmzmk6MyRKQ.mjs +37 -0
  54. package/node/esm/index.mjs +3607 -1998
  55. package/node/esm/r21pRf-kqnnAD611.mjs +32 -0
  56. package/node/esm/{LAkTk93odAfpvx50.mjs → sXWR_bAqmw8b4bT6.mjs} +1 -1
  57. package/{browser/esm/BRwwvGaJ6HvkxjFC.mjs → node/esm/v2vXc6oQz1MG0L1T.mjs} +1 -1
  58. package/{browser/esm/Bma3CN4_Nec6_4n7.mjs → node/esm/vMGzN0Xt0WnzZiH5.mjs} +6 -6
  59. package/package.json +3 -3
  60. package/types/src/.generated/decl/financial/Annuity.decl.d.ts +5 -0
  61. package/types/src/.generated/decl/financial/{Financial.decl.d.ts → Cashflow.decl.d.ts} +1 -1
  62. package/types/src/.generated/decl/financial/Convert.decl.d.ts +4 -0
  63. package/types/src/.generated/decl/financial/Coupon.decl.d.ts +4 -0
  64. package/types/src/.generated/decl/financial/{Financial2.decl.d.ts → Depreciation.decl.d.ts} +1 -1
  65. package/types/src/.generated/decl/financial/Growth.decl.d.ts +4 -0
  66. package/types/src/.generated/decl/financial/{ODD.decl.d.ts → Odd.decl.d.ts} +1 -1
  67. package/types/src/.generated/decl/financial/{Financial3.decl.d.ts → STOCKHISTORY.decl.d.ts} +1 -1
  68. package/types/src/.generated/decl/financial/Security.decl.d.ts +4 -0
  69. package/types/src/.generated/decl/financial/{Financial4.decl.d.ts → SecurityMaturity.decl.d.ts} +1 -1
  70. package/types/src/.generated/decl/{statistical/TTEST.decl.d.ts → financial/TBill.decl.d.ts} +1 -1
  71. package/types/src/.generated/decl/statistical/{ETS.decl.d.ts → Ets.decl.d.ts} +1 -1
  72. package/types/src/.generated/decl/statistical/TTest.decl.d.ts +4 -0
  73. package/types/src/.generated/desc/financial/Annuity.desc.d.ts +5 -0
  74. package/types/src/.generated/desc/financial/{Financial.desc.d.ts → Cashflow.desc.d.ts} +1 -1
  75. package/types/src/.generated/desc/financial/Convert.desc.d.ts +4 -0
  76. package/types/src/.generated/desc/financial/Coupon.desc.d.ts +4 -0
  77. package/types/src/.generated/desc/financial/{Financial2.desc.d.ts → Depreciation.desc.d.ts} +1 -1
  78. package/types/src/.generated/desc/financial/Growth.desc.d.ts +4 -0
  79. package/types/src/.generated/desc/financial/{ODD.desc.d.ts → Odd.desc.d.ts} +1 -1
  80. package/types/src/.generated/desc/financial/{Financial3.desc.d.ts → STOCKHISTORY.desc.d.ts} +1 -1
  81. package/types/src/.generated/desc/financial/Security.desc.d.ts +4 -0
  82. package/types/src/.generated/desc/financial/{Financial4.desc.d.ts → SecurityMaturity.desc.d.ts} +1 -1
  83. package/types/src/.generated/desc/{statistical/TTEST.desc.d.ts → financial/TBill.desc.d.ts} +1 -1
  84. package/types/src/.generated/desc/statistical/{ETS.desc.d.ts → Ets.desc.d.ts} +1 -1
  85. package/types/src/.generated/desc/statistical/TTest.desc.d.ts +4 -0
  86. package/types/src/_utils/AnyArgs.d.ts +17 -3
  87. package/types/src/_utils/FinanaceSolver.d.ts +39 -2
  88. package/types/src/_utils/FinanceAmor.d.ts +23 -0
  89. package/types/src/_utils/FinanceCashflow.d.ts +42 -0
  90. package/types/src/_utils/FinanceCoupon.d.ts +92 -82
  91. package/types/src/_utils/FinanceDate.d.ts +24 -0
  92. package/types/src/_utils/FinanceDayCount.d.ts +46 -0
  93. package/types/src/_utils/FinanceOdd.d.ts +93 -0
  94. package/types/src/_utils/FinanceSecurity.d.ts +84 -0
  95. package/types/src/_utils/FinanceUtils.d.ts +34 -0
  96. package/types/src/_utils/LeastSquares.d.ts +20 -22
  97. package/types/src/_utils/RegexCompile.d.ts +33 -0
  98. package/types/src/cube/Cube.d.ts +7 -7
  99. package/types/src/financial/ACCRINT.d.ts +33 -6
  100. package/types/src/financial/AMORDEGRC.d.ts +22 -40
  101. package/types/src/financial/Annuity.d.ts +118 -0
  102. package/types/src/financial/Cashflow.d.ts +84 -0
  103. package/types/src/financial/Convert.d.ts +26 -0
  104. package/types/src/financial/Coupon.d.ts +72 -0
  105. package/types/src/financial/Date.d.ts +34 -5
  106. package/types/src/financial/Depreciation.d.ts +58 -0
  107. package/types/src/financial/Growth.d.ts +22 -0
  108. package/types/src/financial/Odd.d.ts +82 -0
  109. package/types/src/financial/STOCKHISTORY.d.ts +17 -0
  110. package/types/src/financial/Security.d.ts +68 -0
  111. package/types/src/financial/SecurityMaturity.d.ts +107 -0
  112. package/types/src/financial/TBill.d.ts +40 -0
  113. package/types/src/financial/VDB.d.ts +15 -13
  114. package/types/src/statistical/{ETS.d.ts → Ets.d.ts} +14 -14
  115. package/types/src/statistical/Regression.d.ts +13 -18
  116. package/types/src/statistical/{TTEST.d.ts → TTest.d.ts} +5 -5
  117. package/types/src/text/RegEx.d.ts +34 -11
  118. package/browser/cjs/B4JJfKSI4ppwU855.cjs +0 -1
  119. package/browser/cjs/BwLx9ix5Sq7suAYP.cjs +0 -1
  120. package/browser/cjs/Clu7XiAsCB48GDXN.cjs +0 -1
  121. package/browser/cjs/DsFZgtSQpC75d1M0.cjs +0 -1
  122. package/browser/cjs/fqTQ_p3ehzUvc1tF.cjs +0 -1
  123. package/browser/cjs/h3dw1jAp2J5Pu4p3.cjs +0 -1
  124. package/browser/cjs/jev6VGWTdgEgm4Yk.cjs +0 -1
  125. package/browser/esm/CwoMEzOtRihuYUTr.mjs +0 -20
  126. package/browser/esm/Dy6UD7hQRBsT0WNp.mjs +0 -304
  127. package/node/esm/CwoMEzOtRihuYUTr.mjs +0 -20
  128. package/node/esm/Dy6UD7hQRBsT0WNp.mjs +0 -304
  129. package/types/src/financial/Financial.d.ts +0 -288
  130. package/types/src/financial/Financial2.d.ts +0 -99
  131. package/types/src/financial/Financial3.d.ts +0 -95
  132. package/types/src/financial/Financial4.d.ts +0 -82
  133. package/types/src/financial/ODD.d.ts +0 -106
@@ -1,304 +0,0 @@
1
- /**
2
- * @license @sheetxl/formulas-extended - Formulas Enterprise - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.1
3
- *
4
- * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- var e = {
8
- COUPDAYS: {
9
- s: "Returns the number of days from the beginning of the coupon period to the settlement date.",
10
- p: {
11
- settlement: { d: "is the security's settlement date, expressed as a serial date number." },
12
- maturity: { d: "is the security's maturity date, expressed as a serial date number." },
13
- frequency: { d: "is the number of coupon payments per year." },
14
- basis: { d: "is the type of day count basis to use." }
15
- }
16
- },
17
- CUMIPMT: {
18
- s: "Returns the cumulative interest paid between two periods.",
19
- p: {
20
- rate: { d: "is the interest rate." },
21
- nper: { d: "is the total number of payment periods." },
22
- pv: { d: "is the present value of the investment." },
23
- startPeriod: { d: "is the first period in the calculation." },
24
- endPeriod: { d: "is the last period in the calculation." },
25
- type: { d: "is the timing of the payment." }
26
- }
27
- },
28
- CUMPRINC: {
29
- s: "Returns the cumulative principal paid on a loan between two periods.",
30
- p: {
31
- rate: { d: "is the interest rate." },
32
- nper: { d: "is the total number of payment periods." },
33
- pv: { d: "is the present value of the investment." },
34
- startPeriod: { d: "is the first period in the calculation." },
35
- endPeriod: { d: "is the last period in the calculation." },
36
- type: { d: "is the timing of the payment." }
37
- }
38
- },
39
- DB: {
40
- s: "Returns the depreciation of an asset for a specified period using the fixed-declining balance method.",
41
- p: {
42
- cost: { d: "is the initial cost of the asset." },
43
- salvage: { d: "is the salvage value at the end of the life of the asset." },
44
- life: { d: "is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)." },
45
- period: { d: "is the period for which you want to calculate the depreciation. Period must use the same units as Life." },
46
- month: { d: "is the number of months in the first year." }
47
- }
48
- },
49
- DDB: {
50
- s: "Returns the depreciation of an asset for a specified period using the double-declining balance method or some other method you specify.",
51
- p: {
52
- cost: { d: "is the initial cost of the asset." },
53
- salvage: { d: "is the salvage value at the end of the life of the asset." },
54
- life: { d: "is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)." },
55
- period: { d: "is the period for which you want to calculate the depreciation. Period must use the same units as Life." },
56
- factor: { d: "is the rate at which the balance declines." }
57
- }
58
- },
59
- DISC: {
60
- s: "Returns the discount rate for a security.",
61
- p: {
62
- settlement: { d: "is the security's settlement date, expressed as a serial date number." },
63
- maturity: { d: "is the security's maturity date, expressed as a serial date number." },
64
- pr: { d: "is the security's price per $100 face value." },
65
- redemption: { d: "is the security's redemption value per $100 face value." },
66
- basis: { d: "is the type of day count basis to use." }
67
- }
68
- },
69
- DOLLARDE: {
70
- s: "Converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number.",
71
- p: {
72
- fractionalDollar: { d: "is a number expressed as a fraction." },
73
- fraction: { d: "is the integer to use in the denominator of the fraction." }
74
- }
75
- },
76
- DOLLARFR: {
77
- s: "Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction.",
78
- p: {
79
- decimalDollar: { d: "is a decimal number." },
80
- fraction: { d: "is the integer to use in the denominator of the fraction." }
81
- }
82
- },
83
- EFFECT: {
84
- s: "Returns the effective annual interest rate.",
85
- p: {
86
- nominalRate: { d: "is the nominal interest rate." },
87
- npery: { d: "is the number of compounding periods per year." }
88
- }
89
- },
90
- FV: {
91
- s: "Returns the future value of an investment based on periodic, constant payments and a constant interest rate.",
92
- p: {
93
- rate: { d: "is the interest rate." },
94
- nper: { d: "is the total number of payment periods." },
95
- pmt: { d: "is the payment made each period; it cannot change over the life of the investment." },
96
- pv: { d: "is the present value of the investment." },
97
- type: { d: "Indicates when pmts are due." }
98
- }
99
- },
100
- FVSCHEDULE: {
101
- s: "Returns the future value of an initial principal after applying a series of compound interest rates.",
102
- p: {
103
- principal: { d: "is the present value." },
104
- schedule: { d: "is an array of interest rates to apply." }
105
- }
106
- },
107
- IPMT: {
108
- s: "Returns the interest payment for a given period for an investment, based on periodic, constant payments and a constant interest rate.",
109
- p: {
110
- rate: { d: "is the interest rate." },
111
- per: { d: "is the period for which you want to find the interest and must be in the range 1 to Nper." },
112
- nper: { d: "is the total number of payment periods." },
113
- pv: { d: "is the present value of the investment." },
114
- fv: { d: "is the future value, or a cash balance you want to attain after the last payment is made." },
115
- type: { d: "is a logical value representing the timing of payment: at the end of the period = 0, at the beginning of the period = 1." }
116
- }
117
- },
118
- IRR: {
119
- s: "Returns the internal rate of return for a series of cash flows.",
120
- p: {
121
- values: { d: "is an array or a reference to cells that contain numbers for which you want to calculate the internal rate of return." },
122
- guess: { d: "is a number that you guess is close to the result of IRR." }
123
- }
124
- },
125
- ISPMT: {
126
- s: "Returns the interest paid during a specific period of an investment.",
127
- p: {
128
- rate: { d: "is the interest rate." },
129
- per: { d: "period for which you want to find the interest." },
130
- nper: { d: "number of payment periods in an investment." },
131
- pv: { d: "lump sum amount that a series of future payments is right now." }
132
- }
133
- },
134
- MIRR: {
135
- s: "Returns the modified internal rate of return for a series of periodic cash flows.",
136
- p: {
137
- values: { d: "An array of cash flows; must contain at least one positive and one negative value." },
138
- financeRate: { d: "The interest rate paid on negative cash flows (cost of capital)." },
139
- reinvestRate: { d: "The interest rate received on positive cash flows (reinvestment rate)." }
140
- }
141
- },
142
- NOMINAL: {
143
- s: "Returns the annual nominal interest rate.",
144
- p: {
145
- effectiveRate: { d: "is the effective interest rate." },
146
- npery: { d: "is the number of compounding periods per year." }
147
- }
148
- },
149
- NPER: {
150
- s: "Returns the number of periods for an investment based on periodic, constant payments and a constant interest rate.",
151
- p: {
152
- rate: { d: "is the interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR." },
153
- pmt: { d: "is the payment made each period; it cannot change over the life of the investment." },
154
- pv: { d: "is the present value, or the lump-sum amount that a series of future payments is worth now." },
155
- fv: { d: "is the future value, or a cash balance you want to attain after the last payment is made." },
156
- type: { d: "is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0." }
157
- }
158
- },
159
- NPV: {
160
- s: "Returns the net present value of an investment based on a discount rate and a series of future payments (negative values) and income (positive values).",
161
- p: {
162
- rate: { d: "is the rate of discount over the length of one period." },
163
- value: { d: "are 1 to 254 payments and income, equally spaced in time and occurring at the end of each period." }
164
- }
165
- },
166
- PDURATION: {
167
- s: "Returns the number of periods required by an investment to reach a specified value.",
168
- p: {
169
- rate: { d: "is the interest rate." },
170
- pv: { d: "is the present value of the investment." },
171
- fv: { d: "is the desired future value of the investment." }
172
- }
173
- },
174
- PMT: {
175
- s: "Calculates the payment for a loan based on constant payments and a constant interest rate.",
176
- p: {
177
- rate: { d: "is the interest rate." },
178
- nper: { d: "is the total number of payment periods." },
179
- pv: { d: "is the present value of the investment." },
180
- fv: { d: "is the future value, or a cash balance you want to attain after the last payment is made." },
181
- type: { d: "is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0." }
182
- }
183
- },
184
- PPMT: {
185
- s: "Returns the payment on the principal for a given investment based on periodic, constant payments and a constant payments and a constant interest rate.",
186
- p: {
187
- rate: { d: "is the interest rate per period." },
188
- per: { d: "is the period for which you want to find the principal payment and must be in the range 1 to Nper." },
189
- nper: { d: "is the total number of payment periods in the investment." },
190
- pv: { d: "is the present value of the investment." },
191
- fv: { d: "is the future value, or a cash balance you want to attain after the last payment is made." },
192
- type: { d: "is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0." }
193
- }
194
- },
195
- PRICEDISC: {
196
- s: "Returns the price per $100 face value of a discounted security.",
197
- p: {
198
- settlement: { d: "is the security's settlement date, expressed as a serial date number." },
199
- maturity: { d: "is the security's maturity date, expressed as a serial date number." },
200
- discount: { d: "is the security's discount rate." },
201
- redemption: { d: "is the amount to be received at maturity." },
202
- basis: { d: "is the type of day count basis to use." }
203
- }
204
- },
205
- PV: {
206
- s: "Returns the present value of an investment: the total amount that a series of future payments is worth now.",
207
- p: {
208
- rate: { d: "is the interest rate." },
209
- nper: { d: "is the total number of payment periods in an investment." },
210
- pmt: { d: "is the payment made each period and cannot change over the life of the investment." },
211
- fv: { d: "is the future value, or a cash balance you want to attain after the last payment is made." },
212
- type: { d: "is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0." }
213
- }
214
- },
215
- RATE: {
216
- s: "Returns the interest rate per period of a loan or an investment. For example, use 6%/4 for quarterly payments at 6% APR.",
217
- p: {
218
- nper: { d: "is the total number of payment periods." },
219
- pmt: { d: "is the payment made each period and cannot change over the life of the loan or investment." },
220
- pv: { d: "is the present value: the total amount that a series of future payments is worth now." },
221
- fv: { d: "is the future value, or a cash balance you want to attain after the last payment is made." },
222
- type: { d: "is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0." },
223
- guess: { d: "is your guess for what the rate will be." }
224
- }
225
- },
226
- RRI: {
227
- s: "Returns an equivalent interest rate for the growth of an investment.",
228
- p: {
229
- nper: { d: "is the total number of payment periods." },
230
- pv: { d: "is the present value of the investment." },
231
- fv: { d: "is the future value of the investment." }
232
- }
233
- },
234
- SLN: {
235
- s: "Returns the straight-line depreciation of an asset for one period.",
236
- p: {
237
- cost: { d: "is the initial cost of the asset." },
238
- salvage: { d: "is the salvage value at the end of the life of the asset." },
239
- life: { d: "is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)." }
240
- }
241
- },
242
- STOCKHISTORY: {
243
- s: "Returns an array of historical quote data for a symbol and date range you specify..",
244
- p: {
245
- stock: { d: "Symbol of financial instrument to be considered or a Stock data type." },
246
- startDate: { d: "First date to return data from." },
247
- endDate: { d: "Last date to return data from." },
248
- interval: { d: "A number indicating the granularity of the data; 0 - Daily, 1 - Weekly, 2 - Monthly." },
249
- headers: { d: "A logical value to add column header data; 0 - No column header, 1 - Show column header, 2 - Show instrument identifier and column header." },
250
- properties: { d: "A number indicating which column of data to return; 0 through 5." }
251
- },
252
- h: "Unimplemented RichData"
253
- },
254
- SYD: {
255
- s: "Returns the sum-of-years' digits depreciation of an asset for a specified period.",
256
- p: {
257
- cost: { d: "is the initial cost of the asset." },
258
- salvage: { d: "is the salvage value at the end of the life of the asset." },
259
- life: { d: "is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)." },
260
- per: { d: "is the period and must use the same units as Life." }
261
- }
262
- },
263
- TBILLEQ: {
264
- s: "Returns the bond-equivalent yield for a treasury bill.",
265
- p: {
266
- settlement: { d: "is the Treasury bill's settlement date, expressed as a serial date number." },
267
- maturity: { d: "is the Treasury bill's maturity date, expressed as a serial date number." },
268
- discount: { d: "is the Treasury bill's discount rate." }
269
- }
270
- },
271
- TBILLPRICE: {
272
- s: "Returns the price per $100 face value for a treasury bill.",
273
- p: {
274
- settlement: { d: "is the Treasury bill's settlement date, expressed as a serial date number." },
275
- maturity: { d: "is the Treasury bill's maturity date, expressed as a serial date number." },
276
- discount: { d: "is the Treasury bill's discount rate." }
277
- }
278
- },
279
- TBILLYIELD: {
280
- s: "Returns the yield for a treasury bill.",
281
- p: {
282
- settlement: { d: "is the Treasury bill's settlement date, expressed as a serial date number." },
283
- maturity: { d: "is the Treasury bill's maturity date, expressed as a serial date number." },
284
- pr: { d: "is the Treasury Bill's price per $100 face value." }
285
- }
286
- },
287
- XIRR: {
288
- s: "Returns the internal rate of return for a schedule of cash flows.",
289
- p: {
290
- values: { d: "is a series of cash flows that correspond to a schedule of payments in dates." },
291
- dates: { d: "is a schedule of payment dates that corresponds to the cash flow payments." },
292
- guess: { d: "is a number that you guess is close to the result of XIRR." }
293
- }
294
- },
295
- XNPV: {
296
- s: "Returns the net present value for a schedule of cash flows.",
297
- p: {
298
- rate: { d: "is the discount rate to apply to the cash flows." },
299
- values: { d: "is a series of cash flows that correspond to a schedule of payments in dates." },
300
- dates: { d: "is a schedule of payment dates that corresponds to the cash flow payments." }
301
- }
302
- }
303
- };
304
- export { e as default };
@@ -1,288 +0,0 @@
1
- import { Scalar, Omittable, AcceptError, IRange, Flatten } from '@sheetxl/primitives';
2
- /**
3
- * @summary Returns the number of days from the beginning of the coupon period to the settlement date.
4
- * @param settlement is the security's settlement date, expressed as a serial date number.
5
- * @param maturity is the security's maturity date, expressed as a serial date number.
6
- * @param frequency is the number of coupon payments per year.
7
- * @param basis is the type of day count basis to use.
8
- */
9
- export declare function COUPDAYS(settlement: number, // date
10
- maturity: number, // date
11
- frequency: number, basis?: number): number;
12
- /**
13
- * @summary Returns the cumulative interest paid between two periods.
14
- * @param rate is the interest rate.
15
- * @param nper is the total number of payment periods.
16
- * @param pv is the present value of the investment.
17
- * @param startPeriod is the first period in the calculation.
18
- * @param endPeriod is the last period in the calculation.
19
- * @param type is the timing of the payment.
20
- * @compat atp
21
- */
22
- export declare function CUMIPMT(rate: Omittable<Scalar>, nper: Omittable<Scalar>, pv: Omittable<Scalar>, startPeriod: Omittable<Scalar>, endPeriod: Omittable<Scalar>, type: Omittable<Scalar>): number;
23
- /**
24
- * @summary Returns the cumulative principal paid on a loan between two periods.
25
- * @param rate is the interest rate.
26
- * @param nper is the total number of payment periods.
27
- * @param pv is the present value of the investment.
28
- * @param startPeriod is the first period in the calculation.
29
- * @param endPeriod is the last period in the calculation.
30
- * @param type is the timing of the payment.
31
- * @compat atp
32
- */
33
- export declare function CUMPRINC(rate: Omittable<Scalar>, nper: Omittable<Scalar>, pv: Omittable<Scalar>, startPeriod: Omittable<Scalar>, endPeriod: Omittable<Scalar>, type: Omittable<Scalar>): number;
34
- /**
35
- * @summary Returns the depreciation of an asset for a specified period using the fixed-declining balance method.
36
- * @param cost is the initial cost of the asset.
37
- * @param salvage is the salvage value at the end of the life of the asset.
38
- * @param life is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset).
39
- * @param period is the period for which you want to calculate the depreciation. Period must use the same units as Life.
40
- * @param month is the number of months in the first year.
41
- */
42
- export declare function DB(cost: number, salvage: number, life: number, period: number, month?: number): number;
43
- /**
44
- * @summary Returns the depreciation of an asset for a specified period using the double-declining balance method or some other method you specify.
45
- * @param cost is the initial cost of the asset.
46
- * @param salvage is the salvage value at the end of the life of the asset.
47
- * @param life is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset).
48
- * @param period is the period for which you want to calculate the depreciation. Period must use the same units as Life.
49
- * @param factor is the rate at which the balance declines.
50
- *
51
- * @remarks
52
- * Double declining balance (DDB) depreciation method.
53
- */
54
- export declare function DDB(cost: number, salvage: number, life: number, period: number, factor?: number): number;
55
- /**
56
- * @summary Returns the discount rate for a security.
57
- * @param settlement is the security's settlement date, expressed as a serial date number.
58
- * @param maturity is the security's maturity date, expressed as a serial date number.
59
- * @param pr is the security's price per $100 face value.
60
- * @param redemption is the security's redemption value per $100 face value.
61
- * @param basis is the type of day count basis to use.
62
- */
63
- export declare function DISC(settlement: number, // date
64
- maturity: number, // date
65
- pr: number, redemption: number, basis?: number): number;
66
- /**
67
- * @summary Converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number.
68
- * @param fractionalDollar is a number expressed as a fraction.
69
- * @param fraction is the integer to use in the denominator of the fraction.
70
- */
71
- export declare function DOLLARDE(fractionalDollar: number, fraction: number): number;
72
- /**
73
- * @summary Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction.
74
- * @param decimalDollar is a decimal number.
75
- * @param fraction is the integer to use in the denominator of the fraction.
76
- */
77
- export declare function DOLLARFR(decimalDollar: number, fraction: number): number;
78
- /**
79
- * @summary Returns the effective annual interest rate.
80
- * @param nominalRate is the nominal interest rate.
81
- * @param npery is the number of compounding periods per year.
82
- * @compat atp
83
- */
84
- export declare function EFFECT(nominalRate: Omittable<Scalar>, npery: Omittable<Scalar>): number;
85
- /**
86
- * @summary Returns the future value of an investment based on periodic, constant payments and a constant interest rate.
87
- * @param rate is the interest rate.
88
- * @param nper is the total number of payment periods.
89
- * @param pmt is the payment made each period; it cannot change over the life of the investment.
90
- * @param pv is the present value of the investment.
91
- * @param { '0' | '1' } type Indicates when pmts are due.
92
- */
93
- export declare function FV(rate: number, nper: number, pmt: number, pv?: number, type?: number): number;
94
- /**
95
- * @summary Returns the future value of an initial principal after applying a series of compound interest rates.
96
- * @param principal is the present value.
97
- * @param schedule is an array of interest rates to apply.
98
- * @compat atp
99
- */
100
- export declare function FVSCHEDULE(principal: Omittable<Scalar>, schedule: Omittable<AcceptError<IRange>>): number;
101
- /**
102
- * @summary Returns the interest payment for a given period for an investment, based on periodic, constant payments and a constant interest rate.
103
- * @param rate is the interest rate.
104
- * @param per is the period for which you want to find the interest and must be in the range 1 to Nper.
105
- * @param nper is the total number of payment periods.
106
- * @param pv is the present value of the investment.
107
- * @param fv is the future value, or a cash balance you want to attain after the last payment is made.
108
- * @param type is a logical value representing the timing of payment: at the end of the period = 0, at the beginning of the period = 1.
109
- */
110
- export declare function IPMT(rate: number, per: number, nper: number, pv: number, fv?: number, type?: number): number;
111
- /**
112
- * @summary Returns the internal rate of return for a series of cash flows.
113
- * @param values is an array or a reference to cells that contain numbers for which you want to calculate the internal rate of return.
114
- * @param guess is a number that you guess is close to the result of IRR.
115
- */
116
- export declare function IRR(values: Flatten<number>, guess?: number): number;
117
- /**
118
- * @summary Returns the interest paid during a specific period of an investment.
119
- * @param rate is the interest rate.
120
- * @param per period for which you want to find the interest.
121
- * @param nper number of payment periods in an investment.
122
- * @param pv lump sum amount that a series of future payments is right now.
123
- */
124
- export declare function ISPMT(rate: number, per: number, nper: number, pv: number): number;
125
- /**
126
- * @summary Returns the modified internal rate of return for a series of periodic cash flows.
127
- * @param values An array of cash flows; must contain at least one positive and one negative value.
128
- * @param financeRate The interest rate paid on negative cash flows (cost of capital).
129
- * @param reinvestRate The interest rate received on positive cash flows (reinvestment rate).
130
- */
131
- export declare function MIRR(values: Flatten<number>, financeRate: number, reinvestRate: number): number;
132
- /**
133
- * @summary Returns the annual nominal interest rate.
134
- * @param effectiveRate is the effective interest rate.
135
- * @param npery is the number of compounding periods per year.
136
- * @compat atp
137
- */
138
- export declare function NOMINAL(effectiveRate: Omittable<Scalar>, npery: Omittable<Scalar>): number;
139
- /**
140
- * @summary Returns the number of periods for an investment based on periodic, constant payments and a constant interest rate.
141
- * @param rate is the interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR.
142
- * @param pmt is the payment made each period; it cannot change over the life of the investment.
143
- * @param pv is the present value, or the lump-sum amount that a series of future payments is worth now.
144
- * @param fv is the future value, or a cash balance you want to attain after the last payment is made.
145
- * @param type is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0.
146
- */
147
- export declare function NPER(rate: number, pmt: number, pv: number, fv?: number, type?: number): number;
148
- /**
149
- * @summary Returns the net present value of an investment based on a discount rate and a series of future payments (negative values) and income (positive values).
150
- * @param rate is the rate of discount over the length of one period.
151
- * @param value are 1 to 254 payments and income, equally spaced in time and occurring at the end of each period.
152
- */
153
- export declare function NPV(rate: number, value: IRange<number>[]): number;
154
- /**
155
- * @summary Returns the number of periods required by an investment to reach a specified value.
156
- * @param rate is the interest rate.
157
- * @param pv is the present value of the investment.
158
- * @param fv is the desired future value of the investment.
159
- */
160
- export declare function PDURATION(rate: number, pv: number, fv: number): number;
161
- /**
162
- * @summary Calculates the payment for a loan based on constant payments and a constant interest rate.
163
- * @param rate is the interest rate.
164
- * @param nper is the total number of payment periods.
165
- * @param pv is the present value of the investment.
166
- * @param fv is the future value, or a cash balance you want to attain after the last payment is made.
167
- * @param type is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0.
168
- */
169
- export declare function PMT(rate: number, nper: number, pv: number, fv?: number, type?: number): number;
170
- /**
171
- * @summary Returns the payment on the principal for a given investment based on periodic, constant payments and a constant payments and a constant interest rate.
172
- * @param rate is the interest rate per period.
173
- * @param per is the period for which you want to find the principal payment and must be in the range 1 to Nper.
174
- * @param nper is the total number of payment periods in the investment.
175
- * @param pv is the present value of the investment.
176
- * @param fv is the future value, or a cash balance you want to attain after the last payment is made.
177
- * @param type is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0.
178
- */
179
- export declare function PPMT(rate: number, per: number, nper: number, pv: number, fv?: number, type?: number): number;
180
- /**
181
- * @summary Returns the price per $100 face value of a discounted security.
182
- * @param settlement is the security's settlement date, expressed as a serial date number.
183
- * @param maturity is the security's maturity date, expressed as a serial date number.
184
- * @param discount is the security's discount rate.
185
- * @param redemption is the amount to be received at maturity.
186
- * @param basis is the type of day count basis to use.
187
- */
188
- export declare function PRICEDISC(settlement: number, // date
189
- maturity: number, // date
190
- discount: number, redemption: number, basis?: number): number;
191
- /**
192
- * @summary Returns the present value of an investment: the total amount that a series of future payments is worth now.
193
- * @param rate is the interest rate.
194
- * @param nper is the total number of payment periods in an investment.
195
- * @param pmt is the payment made each period and cannot change over the life of the investment.
196
- * @param fv is the future value, or a cash balance you want to attain after the last payment is made.
197
- * @param type is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0.
198
- */
199
- export declare function PV(rate: number, nper: number, pmt: number, fv?: number, type?: number): number;
200
- /**
201
- * @summary Returns the interest rate per period of a loan or an investment. For example, use 6%/4 for quarterly payments at 6% APR.
202
- * @param nper is the total number of payment periods.
203
- * @param pmt is the payment made each period and cannot change over the life of the loan or investment.
204
- * @param pv is the present value: the total amount that a series of future payments is worth now.
205
- * @param fv is the future value, or a cash balance you want to attain after the last payment is made.
206
- * @param type is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0.
207
- * @param guess is your guess for what the rate will be.
208
- */
209
- export declare function RATE(nper: number, pmt: number, pv: number, fv?: number, type?: number, guess?: number): number;
210
- /**
211
- * @summary Returns an equivalent interest rate for the growth of an investment.
212
- * @param nper is the total number of payment periods.
213
- * @param pv is the present value of the investment.
214
- * @param fv is the future value of the investment.
215
- */
216
- export declare function RRI(nper: number, pv: number, fv: number): number;
217
- /**
218
- * @summary Returns the straight-line depreciation of an asset for one period.
219
- * @param cost is the initial cost of the asset.
220
- * @param salvage is the salvage value at the end of the life of the asset.
221
- * @param life is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset).
222
- */
223
- export declare function SLN(cost: number, salvage: number, life: number): number;
224
- /**
225
- * @hidden Unimplemented RichData
226
- * @summary Returns an array of historical quote data for a symbol and date range you specify..
227
- * @param stock Symbol of financial instrument to be considered or a Stock data type.
228
- * @param startDate First date to return data from.
229
- * @param endDate Last date to return data from.
230
- * @param interval A number indicating the granularity of the data; 0 - Daily, 1 - Weekly, 2 - Monthly.
231
- * @param headers A logical value to add column header data; 0 - No column header, 1 - Show column header, 2 - Show instrument identifier and column header.
232
- * @param properties A number indicating which column of data to return; 0 through 5.
233
- */
234
- export declare function STOCKHISTORY(stock: string, startDate: number, // date
235
- endDate?: number, // date
236
- interval?: number, // 0=day, 1=week, 2=month
237
- headers?: number, // 0=none, 1=field names, 2=field names and row numbers
238
- properties?: Flatten<number>): Promise<IRange>;
239
- /**
240
- * @summary Returns the sum-of-years' digits depreciation of an asset for a specified period.
241
- * @param cost is the initial cost of the asset.
242
- * @param salvage is the salvage value at the end of the life of the asset.
243
- * @param life is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset).
244
- * @param per is the period and must use the same units as Life.
245
- */
246
- export declare function SYD(cost: number, salvage: number, life: number, per: number): number;
247
- /**
248
- * @summary Returns the bond-equivalent yield for a treasury bill.
249
- * @param settlement is the Treasury bill's settlement date, expressed as a serial date number.
250
- * @param maturity is the Treasury bill's maturity date, expressed as a serial date number.
251
- * @param discount is the Treasury bill's discount rate.
252
- */
253
- export declare function TBILLEQ(settlement: number, // date
254
- maturity: number, // date
255
- discount: number): number;
256
- /**
257
- * @summary Returns the price per $100 face value for a treasury bill.
258
- * @param settlement is the Treasury bill's settlement date, expressed as a serial date number.
259
- * @param maturity is the Treasury bill's maturity date, expressed as a serial date number.
260
- * @param discount is the Treasury bill's discount rate.
261
- */
262
- export declare function TBILLPRICE(settlement: number, // date
263
- maturity: number, // date
264
- discount: number): number;
265
- /**
266
- * @summary Returns the yield for a treasury bill.
267
- * @param settlement is the Treasury bill's settlement date, expressed as a serial date number.
268
- * @param maturity is the Treasury bill's maturity date, expressed as a serial date number.
269
- * @param pr is the Treasury Bill's price per $100 face value.
270
- */
271
- export declare function TBILLYIELD(settlement: number, // date
272
- maturity: number, // date
273
- pr: number): number;
274
- /**
275
- * @summary Returns the internal rate of return for a schedule of cash flows.
276
- * @param values is a series of cash flows that correspond to a schedule of payments in dates.
277
- * @param dates is a schedule of payment dates that corresponds to the cash flow payments.
278
- * @param guess is a number that you guess is close to the result of XIRR.
279
- */
280
- export declare function XIRR(values: IRange, dates: IRange, guess?: number): Scalar;
281
- /**
282
- * @summary Returns the net present value for a schedule of cash flows.
283
- * @param rate is the discount rate to apply to the cash flows.
284
- * @param values is a series of cash flows that correspond to a schedule of payments in dates.
285
- * @param dates is a schedule of payment dates that corresponds to the cash flow payments.
286
- */
287
- export declare function XNPV(rate: number, values: IRange, dates: IRange): Scalar;
288
- //# sourceMappingURL=Financial.d.ts.map