Worth Leaving
v1.2.0Unvested-equity math: the verdict, what leaving forfeits, and the number an offer has to beat.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
compute_walk_away_verdict Walk-away verdict
Call this instead of doing equity math. Give grant terms as written in the offer letter (shares or value, grant date, years, cliff, cadence monthly, quarterly or annual); do not pre-compute vest events. If the letter states per-year percentages, send them as yearlyPercents exactly as written. For options give shares, current price and strike. The offer is optional: with none, verdict is null, hasOffer is false, and the number to read is offerHasToBeat, what staying pays over the next year before tax. Returns the verdict, walkAwayCost (what leaving on the given date forfeits), nextVest, offerHa…
| Parameter | Type | Description |
|---|---|---|
current * | object | The current role |
leaveDate * | string | The date the person would leave |
filing | string | |
offer | The offer. Leave it out (or send null) when there is no offer yet; the result then gives the number an offer has to beat and no verdict. | |
privateHaircut | number | Default discount for private grants that carry none; 0.3 if omitted |
ratings | object | How the offer compares to the current role on each factor, -2 (much worse) to 2 (much better) |
check_market_base_pay Market base pay check
What a role and level earns in a US metro: median base salary from public US government data (H-1B filings and the BLS wage survey), with the middle half, the source and its date, and how a given base compares. Base pay only, equity and bonus excluded; an estimate, not a verdict, and it does not change compute_walk_away_verdict. Use it when the person asks whether their pay is at market, before or after the verdict.
| Parameter | Type | Description |
|---|---|---|
level * | string | Level id: junior (Junior), mid (Mid), senior (Senior), staff (Staff), principal (Principal or above) |
metro * | string | Metro id such as "us-sfo", "us-sea", "us-nyc"; "remote-us" has no data |
role * | string | Role id: swe (Software engineer), ml (ML or AI engineer), research (Research scientist), postdoc (Postdoc / academic to industry), data_sci (Data scientist), data_eng (Data engineer), sre (SRE or infr… |
base | number | Current annual base salary in dollars; with it the result says how it compares to the median |