io.github.VladimirWrites/nestegg-calculators
REMOTE · NESTEGG.MONEY · SCANNED AUG 4
90+ pure finance calculators: loans, investing, bonds, options, tax. Stateless, stores nothing.
Available components
How this component scores in each security and reliability category. Every signal is checked automatically against the live server, and we only credit what we can confirm. How we score →
Endpoint Security46
- The endpoint's TLS certificate is valid, in date, and uses a strong key. View diagnostics → Pass
- Authorisation not fully verified: no authorisation is required to call this server, and 99 tool(s) never declared a destructiveHint. The MCP spec treats an absent hint as destructive by default, so we cannot call this surface safe. See how to fix → View diagnostics → Unverified
- HTTPS not yet verified: we couldn't determine whether a plaintext access path exists. View diagnostics → Unverified
- HSTS check failed: the Strict-Transport-Security header is absent. See how to fix → View diagnostics → Fail
- DNSSEC check failed: this domain isn't protected by DNSSEC. See how to fix → View diagnostics → Fail
Transport & Reachability100
- Verified streamable-http transport via a live MCP handshake. View diagnostics → Pass
Schema Quality & AI Usability84
- 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
- AI-judged instruction clarity (good).Pass
- Tool/resource definitions use about 8857 tokens (~87/item across 101 items; 99 tools + 2 resources), lean.Pass
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management30
- Stability observed for 9 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 100% of tool parameters carry a description.Pass
- Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.
remote · nestegg.money
claude mcp add --transport http vladimirwrites-nestegg-calculators https://nestegg.money/mcp
[mcp_servers.vladimirwrites-nestegg-calculators] url = "https://nestegg.money/mcp"
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"vladimirwrites-nestegg-calculators": {
"type": "remote",
"url": "https://nestegg.money/mcp",
"enabled": true
}
}
} openclaw mcp add vladimirwrites-nestegg-calculators --url https://nestegg.money/mcp --transport streamable-http
mcp_servers:
vladimirwrites-nestegg-calculators:
url: "https://nestegg.money/mcp" {
"mcpServers": {
"vladimirwrites-nestegg-calculators": {
"type": "http",
"url": "https://nestegg.money/mcp"
}
}
} The mcpServers block is a cross-client convention. Remote transports vary, so check your client's docs.
Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 4 Aug 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 27 to 30. That category is still filling its 30-day observation window: 8 days of observed history at the previous scan, 9 at this one. The score rises as the window fills, whether or not the server changes.
- 2 Aug 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 20 to 23. That category is still filling its 30-day observation window: 6 days of observed history at the previous scan, 7 at this one. The score rises as the window fills, whether or not the server changes.
- 31 Jul 26 −2
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
- 29 Jul 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 7 to 10. That category is still filling its 30-day observation window: 2 days of observed history at the previous scan, 3 at this one. The score rises as the window fills, whether or not the server changes.
- 28 Jul 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 3 to 7. That category is still filling its 30-day observation window: 1 days of observed history at the previous scan, 2 at this one. The score rises as the window fills, whether or not the server changes.
- 27 Jul 26 0
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
- 26 Jul 26 63
First indexed and scored.
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 4 Aug 2026 · Probed https://nestegg.money/mcp
TLS valid
Negotiated TLS 1.3 with TLS_AES_128_GCM_SHA256 .
| Subject | Issuer | Valid from | Valid until | Key | Signature | Serial |
|---|---|---|---|---|---|---|
| CN=nestegg.money | CN=WE1,O=Google Trust Services,C=US | 20 Jun 2026 | 18 Sept 2026 | ECDSA 256 | ECDSA-SHA256 | 8f70728bb541030d13ff595c8e61590c |
| SANs: nestegg.money, *.nestegg.money | ||||||
| CN=WE1,O=Google Trust Services,C=US (CA) | CN=GTS Root R4,O=Google Trust Services LLC,C=US | 13 Dec 2023 | 20 Feb 2029 | ECDSA 256 | ECDSA-SHA384 | 7ff31977972c224a76155d13b6d685e3 |
| CN=GTS Root R4,O=Google Trust Services LLC,C=US (CA) | CN=GlobalSign Root CA,OU=Root CA,O=GlobalSign nv-sa,C=BE | 15 Nov 2023 | 28 Jan 2028 | ECDSA 384 | SHA256-RSA | 7fe530bf331343bedd821610493d8a1b |
DNSSEC insecure
Validation of nestegg.money. — Not signed
| Zone | DS | Keys | Algorithms | Outcome |
|---|---|---|---|---|
| . | trust_anchor | 20326, 38696 | 8, 8 | Verified |
| money. | present | 4450 | 8 | Verified |
| nestegg.money. | absent | Unsigned (proven) parent-signed NSEC/NSEC3 proves an unsigned delegation |
Authentication No authorisation required
The endpoint answered without asking for a token. Anyone who knows the URL can reach it.
| Result | No authorisation required |
|---|---|
| HTTP status | 200 |
Transports 2 probes
| Transport | URL | Outcome | Status | Location |
|---|---|---|---|---|
| streamable-http | https://nestegg.money/mcp | Verified | 200 | |
| http (plaintext) | http://nestegg.money/mcp | Inconclusive | 405 |
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.
interest-only-payment Interest-Only Payment ~38
Interest-only monthly payment on a balance.
| Name | Type | Req | Description |
|---|---|---|---|
| amount | number | yes | Outstanding balance. |
| ratePct | number | yes | Annual rate in percent. |
| Name | Type | Req | Description |
|---|---|---|---|
| payment | number | — | Monthly interest payment. |
No examples provided.
intrinsic-time-value Intrinsic & Time Value ~66
Split an option premium into intrinsic value (in-the-money amount) and time value.
| Name | Type | Req | Description |
|---|---|---|---|
| premium | number | yes | Option premium. |
| spot | number | yes | Underlying price. |
| strike | number | yes | Strike price. |
| type | string | — | Option type (default call). |
| Name | Type | Req | Description |
|---|---|---|---|
| intrinsic | number | — | Intrinsic value. |
| timeValue | number | — | Time value. |
No examples provided.
irr IRR ~64
Internal rate of return: the per-period rate that zeroes the NPV of a cashflow series. Returns a percent, or null when the series never crosses zero.
| Name | Type | Req | Description |
|---|---|---|---|
| cashflows | array | yes | Cashflows by period, starting at period 0. Outflows are negative. |
| Name | Type | Req | Description |
|---|---|---|---|
| irrPct | number | — | Internal rate of return, percent (null if none). |
No examples provided.
loan-apr Loan APR ~89
Effective APR including upfront fees: the note-rate payment priced against the net proceeds (amount - fees). Annual percent.
| Name | Type | Req | Description |
|---|---|---|---|
| amount | number | yes | Loan amount. |
| fees | number | — | Optional. Upfront fees / points in currency (default 0). |
| ratePct | number | yes | Note (nominal) annual rate in percent. |
| termMonths | number | yes | Term in months. |
| Name | Type | Req | Description |
|---|---|---|---|
| aprPct | number | — | Effective APR, percent (null if degenerate). |
No examples provided.
loan-payoff Loan Payoff ~183
Time and interest saved by paying a fixed extra amount every month on a loan, versus the baseline schedule.
| Name | Type | Req | Description |
|---|---|---|---|
| amount | number | yes | Loan principal. |
| extra | array | — | Optional dated extra principal payments. |
| extraMonthly | number | yes | Extra principal paid each month. |
| fixedUntil | string | — | Optional. Rate is certain until this ISO date; beyond it the schedule is an estimate. |
| mode | string | yes | Fix the term (compute the payment) or fix the payment (compute the term). |
| payment | number | — | Monthly payment, used when mode is 'payment'. |
| rate | number | yes | Annual interest rate in percent (6 = 6%). |
| startDate | string | yes | First payment month as an ISO date (YYYY-MM-DD). |
| termYears | number | — | Term in years, used when mode is 'term'. |
| Name | Type | Req | Description |
|---|---|---|---|
| accelerated | object | — | Accelerated { months, totalInterest, payoffDate }. |
| baseline | object | — | Baseline { months, totalInterest, payoffDate }. |
| interestSaved | number | — | Interest saved. |
| monthsSaved | number | — | Months saved. |
No examples provided.
ltv Loan-to-Value ~40
Loan-to-value ratio, percent (loan / property value).
| Name | Type | Req | Description |
|---|---|---|---|
| loanAmount | number | yes | Loan amount. |
| propertyValue | number | yes | Property value. |
| Name | Type | Req | Description |
|---|---|---|---|
| ltvPct | number | — | Loan-to-value, percent (null if value<=0). |
No examples provided.
margin-markup Margin & Markup ~97
Convert between margin and markup. Supply any one of cost/price plus one of marginPct/markupPct (or both cost and price); returns cost, price, profit, marginPct, and markupPct.
| Name | Type | Req | Description |
|---|---|---|---|
| cost | number | — | Unit cost. |
| marginPct | number | — | Profit as a percent of price. |
| markupPct | number | — | Profit as a percent of cost. |
| price | number | — | Selling price. |
| Name | Type | Req | Description |
|---|---|---|---|
| cost | number | — | Cost. |
| marginPct | number | — | Margin, percent. |
| markupPct | number | — | Markup, percent. |
| price | number | — | Price. |
| profit | number | — | Profit. |
No examples provided.
max-drawdown Max Drawdown ~47
Maximum drawdown of a value series: the largest peak-to-trough decline, as a positive percent.
| Name | Type | Req | Description |
|---|---|---|---|
| series | array | yes | Sequence of values (e.g. portfolio levels). |
| Name | Type | Req | Description |
|---|---|---|---|
| maxDrawdownPct | number | — | Largest peak-to-trough decline, percent. |
No examples provided.
mirr MIRR ~84
Modified internal rate of return: negatives financed at financeRate, positives reinvested at reinvestRate. Percents in and out.
| Name | Type | Req | Description |
|---|---|---|---|
| cashflows | array | yes | Cashflows by period (index 0 today; outflows negative). |
| financeRatePct | number | yes | Finance rate in percent. |
| reinvestRatePct | number | yes | Reinvestment rate in percent. |
| Name | Type | Req | Description |
|---|---|---|---|
| mirrPct | number | — | Modified IRR, percent (null if degenerate). |
No examples provided.
mortgage-affordability Mortgage Affordability ~155
Maximum loan and home price the income supports: the DTI cap on gross monthly income (less existing debts) sets the payment, whose present value at the rate and term is the loan.
| Name | Type | Req | Description |
|---|---|---|---|
| annualIncome | number | yes | Gross annual income. |
| downPayment | number | — | Optional. Cash down payment, added to the loan for the home price (default 0). |
| dtiPct | number | yes | Max share of gross monthly income for the payment, in percent (e.g. 36). |
| monthlyDebts | number | — | Optional. Existing monthly debt payments (default 0). |
| rate | number | yes | Annual interest rate in percent. |
| termYears | number | yes | Loan term in years. |
| Name | Type | Req | Description |
|---|---|---|---|
| maxHomePrice | number | — | Max home price. |
| maxLoan | number | — | Max loan. |
| maxMonthlyPayment | number | — | Max payment. |
No examples provided.
net-worth Net Worth ~33
Net worth: assets minus liabilities.
| Name | Type | Req | Description |
|---|---|---|---|
| assets | number | yes | Total assets. |
| liabilities | number | yes | Total liabilities. |
| Name | Type | Req | Description |
|---|---|---|---|
| netWorth | number | — | Assets minus liabilities. |
No examples provided.
noi Net Operating Income ~56
Net operating income: gross rental income less vacancy and operating expenses.
| Name | Type | Req | Description |
|---|---|---|---|
| grossRentalIncome | number | yes | Gross annual rental income. |
| operatingExpenses | number | yes | Annual operating expenses. |
| vacancyPct | number | yes | Vacancy rate in percent. |
| Name | Type | Req | Description |
|---|---|---|---|
| noi | number | — | Net operating income. |
No examples provided.
npv NPV ~72
Net present value of a cashflow series (index 0 is today; outflows negative) discounted at a per-period rate.
| Name | Type | Req | Description |
|---|---|---|---|
| cashflows | array | yes | Cashflows by period, starting at period 0. Outflows are negative. |
| discountRatePct | number | yes | Discount rate per period in percent. |
| Name | Type | Req | Description |
|---|---|---|---|
| npv | number | — | Net present value. |
No examples provided.
option-breakeven Option Break-Even ~63
Break-even underlying price at expiry: strike + premium for a call, strike - premium for a put.
| Name | Type | Req | Description |
|---|---|---|---|
| premium | number | yes | Option premium paid. |
| strike | number | yes | Strike price. |
| type | string | — | Option type (default call). |
| Name | Type | Req | Description |
|---|---|---|---|
| breakeven | number | — | Break-even underlying price. |
No examples provided.
option-greeks Option Greeks ~134
Black-Scholes greeks for a European option: delta, gamma, vega (per 1% vol), theta (per day), rho (per 1% rate).
| Name | Type | Req | Description |
|---|---|---|---|
| dividendYieldPct | number | — | Continuous dividend yield in percent (default 0). |
| riskFreePct | number | yes | Risk-free rate in percent. |
| spot | number | yes | Current underlying price. |
| strike | number | yes | Strike price. |
| type | string | — | Option type (default call). |
| volatilityPct | number | yes | Annualized volatility in percent. |
| years | number | yes | Time to expiry in years. |
| Name | Type | Req | Description |
|---|---|---|---|
| delta | number | — | Delta. |
| gamma | number | — | Gamma. |
| rho | number | — | Rho per 1% rate. |
| theta | number | — | Theta per day. |
| vega | number | — | Vega per 1% vol. |
No examples provided.
payback-period Payback Period ~58
Simple payback period: periods until cumulative cashflows recover the initial cost, interpolated within the crossing period. Null if never.
| Name | Type | Req | Description |
|---|---|---|---|
| cashflows | array | yes | Inflow each period. |
| initialCost | number | yes | Upfront cost. |
| Name | Type | Req | Description |
|---|---|---|---|
| years | number | — | Payback in periods (null if never). |
No examples provided.
percentage-change Percentage Change ~42
Percentage change from one value to another. Null when the starting value is zero.
| Name | Type | Req | Description |
|---|---|---|---|
| from | number | yes | Starting value. |
| to | number | yes | Ending value. |
| Name | Type | Req | Description |
|---|---|---|---|
| changePct | number | — | Percentage change (null if from=0). |
No examples provided.
perpetuity Perpetuity ~75
Present value of a level or growing perpetuity: payment / (rate - growth). Null when growth is not below the rate.
| Name | Type | Req | Description |
|---|---|---|---|
| growthPct | number | — | Optional. Payment growth rate in percent (default 0). |
| payment | number | yes | Periodic payment. |
| ratePct | number | yes | Discount rate in percent. |
| Name | Type | Req | Description |
|---|---|---|---|
| pv | number | — | Present value (null if growth>=rate). |
No examples provided.
points-breakeven Points Break-Even ~103
Mortgage points break-even: the upfront cost to buy down the rate, the monthly payment saving, and the whole months to recoup it.
| Name | Type | Req | Description |
|---|---|---|---|
| loanAmount | number | yes | Loan amount. |
| pointsPct | number | yes | Points paid, percent of the loan. |
| ratePct | number | yes | Base annual rate in percent. |
| reducedRatePct | number | yes | Reduced annual rate after buying points. |
| termMonths | number | yes | Term in months. |
| Name | Type | Req | Description |
|---|---|---|---|
| breakevenMonths | number | — | Whole months to recoup (null if no saving). |
| cost | number | — | Upfront cost of points. |
| monthlySaving | number | — | Monthly payment saving. |
No examples provided.
portfolio-longevity Portfolio Longevity ~117
How many years a balance lasts while withdrawing from it: the balance grows each year, then the withdrawal (optionally stepping up) is taken. Returns the depletion year, or sustainable=true when it outlasts 200 years.
| Name | Type | Req | Description |
|---|---|---|---|
| annualRatePct | number | yes | Annual portfolio growth in percent. |
| annualWithdrawal | number | yes | Amount withdrawn in the first year. |
| balance | number | yes | Starting balance. |
| withdrawalGrowthPct | number | — | Optional. Yearly step-up of the withdrawal in percent (default 0). |
| Name | Type | Req | Description |
|---|---|---|---|
| sustainable | boolean | — | True if it outlasts 200 years. |
| years | number | — | Depletion year (null if sustainable). |
No examples provided.
present-value Present Value ~66
Present value of a single future amount discounted annually. The inverse of future-value.
| Name | Type | Req | Description |
|---|---|---|---|
| annualRatePct | number | yes | Annual discount rate in percent. |
| futureAmount | number | yes | Amount received in the future. |
| years | number | yes | Number of years until the amount is received. |
| Name | Type | Req | Description |
|---|---|---|---|
| pv | number | — | Present value. |
No examples provided.
put-call-parity Put-Call Parity ~129
Put-call parity: given one option price, returns both. Provide call or put, plus spot, strike, years, and the rate.
| Name | Type | Req | Description |
|---|---|---|---|
| call | number | — | Call price (provide call or put). |
| dividendYieldPct | number | — | Continuous dividend yield in percent (default 0). |
| put | number | — | Put price (provide call or put). |
| riskFreePct | number | yes | Risk-free rate in percent. |
| spot | number | yes | Underlying price. |
| strike | number | yes | Strike price. |
| years | number | yes | Time to expiry in years. |
| Name | Type | Req | Description |
|---|---|---|---|
| call | number | — | Call price. |
| put | number | — | Put price. |
No examples provided.
quick-ratio Quick Ratio ~55
Quick (acid-test) ratio: (current assets - inventory) over current liabilities.
| Name | Type | Req | Description |
|---|---|---|---|
| currentAssets | number | yes | Current assets. |
| currentLiabilities | number | yes | Current liabilities. |
| inventory | number | yes | Inventory. |
| Name | Type | Req | Description |
|---|---|---|---|
| quickRatio | number | — | Quick ratio (null if liabilities<=0). |
No examples provided.
real-return Real Return ~68
Real (inflation-adjusted) return from a nominal rate via the Fisher relation: (1+nominal)/(1+inflation) - 1.
| Name | Type | Req | Description |
|---|---|---|---|
| inflationRatePct | number | yes | Annual inflation in percent. |
| nominalRatePct | number | yes | Nominal annual rate in percent. |
| Name | Type | Req | Description |
|---|---|---|---|
| realPct | number | — | Real return, percent. |
No examples provided.
refi-breakeven Refinance Break-Even ~100
Refinance break-even: monthly saving, whole months to recoup closing costs, and (if remainingMonths given) the net saving over the remaining term.
| Name | Type | Req | Description |
|---|---|---|---|
| closingCosts | number | yes | Upfront cost to refinance. |
| currentPayment | number | yes | Current monthly payment. |
| newPayment | number | yes | New monthly payment after refinancing. |
| remainingMonths | number | — | Optional. Months left on the loan, for the lifetime saving. |
| Name | Type | Req | Description |
|---|---|---|---|
| breakevenMonths | number | — | Whole months to recoup (null if no saving). |
| lifetimeSaving | number | — | Net lifetime saving (null if no term). |
| monthlySaving | number | — | Monthly saving. |
No examples provided.
required-contribution Required Contribution ~88
Inverse of contributions: the fixed monthly amount needed to reach a target future value over a number of months, given an optional starting balance.
| Name | Type | Req | Description |
|---|---|---|---|
| annualRatePct | number | yes | Annual growth rate in percent. |
| months | number | yes | Number of months. |
| presentValue | number | — | Optional. Starting balance (default 0). |
| targetValue | number | yes | Future value goal. |
| Name | Type | Req | Description |
|---|---|---|---|
| monthly | number | — | Monthly contribution needed (null if horizon<=0). |
No examples provided.
required-return Required Return ~95
Annual return needed to grow a starting value to a target over a number of years, optionally with a fixed annual contribution. With no contribution this equals CAGR. Returns a percent, or null when unreachable.
| Name | Type | Req | Description |
|---|---|---|---|
| annualContribution | number | — | Optional. Amount added each year (default 0). |
| begin | number | yes | Starting value. |
| end | number | yes | Target ending value. |
| years | number | yes | Number of years. |
| Name | Type | Req | Description |
|---|---|---|---|
| ratePct | number | — | Annual rate, percent (null if unreachable). |
No examples provided.
return-stats Return Statistics ~59
Mean, sample variance, and sample standard deviation (n-1) of a series of returns. Pass percents to get a percent stdev (volatility).
| Name | Type | Req | Description |
|---|---|---|---|
| returns | array | yes | The return series (e.g. yearly percents). |
| Name | Type | Req | Description |
|---|---|---|---|
| count | number | — | Number of returns. |
| mean | number | — | Mean return. |
| stdev | number | — | Sample stdev / volatility (null if <2). |
| variance | number | — | Sample variance (null if <2). |
No examples provided.
roa Return on Assets ~39
Return on assets, percent: net income over total assets.
| Name | Type | Req | Description |
|---|---|---|---|
| netIncome | number | yes | Net income. |
| totalAssets | number | yes | Total assets. |
| Name | Type | Req | Description |
|---|---|---|---|
| roaPct | number | — | Return on assets, percent (null if assets<=0). |
No examples provided.
roe Return on Equity ~41
Return on equity, percent: net income over shareholders' equity.
| Name | Type | Req | Description |
|---|---|---|---|
| equity | number | yes | Shareholders' equity. |
| netIncome | number | yes | Net income. |
| Name | Type | Req | Description |
|---|---|---|---|
| roePct | number | — | Return on equity, percent (null if equity<=0). |
No examples provided.
roi ROI ~67
Return on investment: total percent gain, plus the annualized rate when a holding period in years is given.
| Name | Type | Req | Description |
|---|---|---|---|
| finalValue | number | yes | Ending value. |
| initial | number | yes | Amount invested. |
| years | number | — | Optional. Holding period in years, for the annualized rate. |
| Name | Type | Req | Description |
|---|---|---|---|
| annualizedPct | number | — | Annualized return, percent (null if no years). |
| roiPct | number | — | Total return, percent. |
No examples provided.
rule-of-72 Rule of 72 ~51
Years to double: the rule-of-72 estimate (72/rate) and the exact figure (ln2 / ln(1+rate)).
| Name | Type | Req | Description |
|---|---|---|---|
| ratePct | number | yes | Growth rate in percent. |
| Name | Type | Req | Description |
|---|---|---|---|
| exactYears | number | — | Exact doubling time. |
| years72 | number | — | 72/rate estimate. |
No examples provided.
salary-to-hourly Salary to Hourly ~61
Hourly rate implied by an annual salary.
| Name | Type | Req | Description |
|---|---|---|---|
| annualSalary | number | yes | Annual salary. |
| hoursPerWeek | number | — | Hours per week (default 40). |
| weeksPerYear | number | — | Weeks per year (default 52). |
| Name | Type | Req | Description |
|---|---|---|---|
| hourly | number | — | Hourly rate (null if hours<=0). |
No examples provided.
savings-rate Savings Rate ~40
Fraction of income saved (savings divided by income). Returns a decimal.
| Name | Type | Req | Description |
|---|---|---|---|
| income | number | yes | Income. |
| savings | number | yes | Amount saved. |
| Name | Type | Req | Description |
|---|---|---|---|
| value | number | — | Result value. |
No examples provided.
sharpe-ratio Sharpe Ratio ~73
Sharpe ratio: excess mean return per unit of volatility, (mean - riskFree) / stdev. Null when volatility is undefined or zero.
| Name | Type | Req | Description |
|---|---|---|---|
| returns | array | yes | The return series (percents). |
| riskFreePct | number | — | Risk-free rate in the same unit (default 0). |
| Name | Type | Req | Description |
|---|---|---|---|
| meanPct | number | — | Mean return. |
| sharpe | number | — | Sharpe ratio (null if no volatility). |
| stdevPct | number | — | Volatility. |
No examples provided.
straight-line-depreciation Straight-Line Depreciation ~68
Straight-line depreciation: value falling evenly to a salvage value over a useful life.
| Name | Type | Req | Description |
|---|---|---|---|
| salvage | number | yes | Salvage value. |
| usefulYears | number | yes | Useful life in years. |
| value | number | yes | Starting value. |
| yearsElapsed | number | yes | Years elapsed. |
| Name | Type | Req | Description |
|---|---|---|---|
| value | number | — | Result value. |
No examples provided.
successive-discounts Successive Discounts ~50
Stacked discounts applied in order: the final price and the effective single discount rate.
| Name | Type | Req | Description |
|---|---|---|---|
| discountsPct | array | yes | Discounts in percent, applied in order. |
| price | number | yes | Original price. |
| Name | Type | Req | Description |
|---|---|---|---|
| effectivePct | number | — | Effective single discount, percent (null if price=0). |
| finalPrice | number | — | Final price. |
No examples provided.
sum-of-years-digits Sum-of-Years' Digits Depreciation ~71
Sum-of-the-years'-digits depreciation: the depreciable base weighted toward the early years.
| Name | Type | Req | Description |
|---|---|---|---|
| salvage | number | yes | Salvage value. |
| usefulYears | number | yes | Useful life in years. |
| value | number | yes | Initial cost. |
| year | number | yes | Year (1-based). |
| Name | Type | Req | Description |
|---|---|---|---|
| bookValue | number | — | Book value at year end. |
| depreciation | number | — | Depreciation this year. |
No examples provided.
tax-equivalent-yield Tax-Equivalent Yield ~68
Tax-equivalent yield: the taxable yield that matches a tax-free (e.g. muni) yield. Percents in and out.
| Name | Type | Req | Description |
|---|---|---|---|
| taxFreeYieldPct | number | yes | Tax-free yield in percent. |
| taxRatePct | number | yes | Marginal tax rate in percent. |
| Name | Type | Req | Description |
|---|---|---|---|
| taxEquivalentPct | number | — | Tax-equivalent yield, percent (null if tax>=100%). |
No examples provided.
tax-from-brackets Tax from Brackets ~78
Progressive tax from caller-supplied brackets. No jurisdiction, year, or rates are baked in: pass the brackets yourself. Returns total tax, effective rate, and marginal rate.
| Name | Type | Req | Description |
|---|---|---|---|
| brackets | array | yes | Ordered tax bands. The final band may omit upTo to run to infinity. |
| income | number | yes | Taxable income. |
| Name | Type | Req | Description |
|---|---|---|---|
| effectiveRatePct | number | — | Effective rate, percent. |
| marginalRatePct | number | — | Marginal rate, percent. |
| tax | number | — | Total tax. |
No examples provided.
tip-split Tip Split ~61
Tip and split: the tip amount, the total, and the per-person share.
| Name | Type | Req | Description |
|---|---|---|---|
| billAmount | number | yes | Bill amount. |
| people | number | — | Number of people (default 1). |
| tipPct | number | yes | Tip in percent. |
| Name | Type | Req | Description |
|---|---|---|---|
| perPerson | number | — | Per-person share. |
| tip | number | — | Tip amount. |
| total | number | — | Total with tip. |
No examples provided.
unit-price Unit Price ~45
Unit price: price divided by quantity (for comparing pack sizes). Null when quantity is zero.
| Name | Type | Req | Description |
|---|---|---|---|
| price | number | yes | Price. |
| quantity | number | yes | Quantity / size. |
| Name | Type | Req | Description |
|---|---|---|---|
| unitPrice | number | — | Price per unit (null if quantity=0). |
No examples provided.
units-of-production-depreciation Units-of-Production Depreciation ~81
Units-of-production depreciation: the depreciable base spread over total expected units, charged by the units used this period.
| Name | Type | Req | Description |
|---|---|---|---|
| salvage | number | yes | Salvage value. |
| totalUnits | number | yes | Total expected units over the life. |
| unitsThisPeriod | number | yes | Units produced this period. |
| value | number | yes | Initial cost. |
| Name | Type | Req | Description |
|---|---|---|---|
| depreciation | number | — | Depreciation this period (null if totalUnits<=0). |
No examples provided.
vat VAT ~120
Value-added tax (MwSt/USt, sales tax) on a price. By default adds the tax to a net price; with inclusive=true treats the amount as gross and extracts the tax. The rate is always an input (19 or 7 for Germany, etc.).
| Name | Type | Req | Description |
|---|---|---|---|
| amount | number | yes | The price. |
| inclusive | boolean | — | false (default): amount is net, add the tax. true: amount is gross, extract the tax. |
| ratePct | number | yes | VAT rate in percent (e.g. 19 or 7). |
| Name | Type | Req | Description |
|---|---|---|---|
| gross | number | — | Gross price. |
| net | number | — | Net price. |
| tax | number | — | Tax amount. |
No examples provided.
wacc WACC ~95
Weighted average cost of capital: equity and after-tax debt weighted by the capital structure. Percents in and out.
| Name | Type | Req | Description |
|---|---|---|---|
| costDebtPct | number | yes | Cost of debt in percent. |
| costEquityPct | number | yes | Cost of equity in percent. |
| debt | number | yes | Market value of debt. |
| equity | number | yes | Market value of equity. |
| taxRatePct | number | yes | Tax rate in percent. |
| Name | Type | Req | Description |
|---|---|---|---|
| waccPct | number | — | WACC, percent (null if no capital). |
No examples provided.
xirr XIRR ~57
Date-aware internal rate of return: the annual rate that zeroes the XNPV of irregular dated cashflows. Null if no rate fits.
| Name | Type | Req | Description |
|---|---|---|---|
| cashflows | array | yes | Dated cashflows; the first date is the valuation date. |
| Name | Type | Req | Description |
|---|---|---|---|
| xirrPct | number | — | Date-aware IRR, percent (null if none). |
No examples provided.
xnpv XNPV ~74
Date-aware net present value: each amount discounted by its fractional years (act/365) from the first cashflow's date. Annual rate in percent.
| Name | Type | Req | Description |
|---|---|---|---|
| annualRatePct | number | yes | Annual discount rate in percent. |
| cashflows | array | yes | Dated cashflows; the first date is the valuation date. |
| Name | Type | Req | Description |
|---|---|---|---|
| npv | number | — | Date-aware net present value. |
No examples provided.
yield-to-maturity Yield to Maturity ~122
Bond yield to maturity: the nominal annual yield that prices a bond at the given price, with periodic coupons and face returned at maturity. Solved numerically. Returns a percent, or null.
| Name | Type | Req | Description |
|---|---|---|---|
| couponRatePct | number | yes | Annual coupon rate in percent of face. |
| faceValue | number | yes | Face (par) value repaid at maturity. |
| periodsPerYear | number | — | Coupon periods per year (default 2 = semiannual). |
| price | number | yes | Current bond price. |
| years | number | yes | Years to maturity. |
| Name | Type | Req | Description |
|---|---|---|---|
| yieldPct | number | — | Nominal annual yield, percent (null if none). |
No examples provided.
zero-coupon-price Zero-Coupon Price ~78
Price of a zero-coupon bond: face value discounted to today at the yield.
| Name | Type | Req | Description |
|---|---|---|---|
| compoundingPerYear | number | — | Compounding periods per year (default 1). |
| faceValue | number | yes | Face value. |
| years | number | yes | Years to maturity. |
| yieldPct | number | yes | Annual yield in percent. |
| Name | Type | Req | Description |
|---|---|---|---|
| price | number | — | Zero-coupon price. |
No examples provided.