OPT_BS_CARRYCOST Function (Gnumeric)
Measure Gnumeric option sensitivity to cost of carry with OPT_BS_CARRYCOST, including derivative units and corrected help-text interpretation.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
OPT_BS_CARRYCOST measures how a generalized European option’s theoretical price changes with its cost-of-carry parameter, holding the other inputs fixed. The help calls this “elasticity,” but the implemented output is an unnormalized derivative with respect to carry, not the usual dimensionless percentage elasticity. It is also not volatility sensitivity.
Syntax and interpretation
=OPT_BS_CARRYCOST(call_put_flag,spot,strike,time,rate,volatility,[cost_of_carry])
Use “c” for a call and “p” for a put. spot and strike are price levels, time is years, rate is an annual decimal discount rate, volatility is an annualized decimal standard deviation, and cost_of_carry is the annual decimal carry rate. The optional carry defaults to zero. Use positive spot, strike, time and volatility for the ordinary model tested here.
For a stock with a continuous dividend yield, carry is commonly risk-free rate minus dividend yield. The derivative in this function changes that carry argument while holding rate fixed. It should not be substituted automatically for a rate sensitivity in which both rate and carry change.
Reproducible call sensitivity
=OPT_BS_CARRYCOST("c",100,100,1,0.05,0.2,0.05)
The expected result is approximately 63.6830651176. An independent central difference of discounted-payoff quadrature, varying only carry by ±0.00001, gives approximately 63.6830651194. The small difference is consistent with finite-difference and numerical-integration error.
For a row-based example, put “c”, 100, 100, 1, 0.05, 0.2 and 0.05 in A2:G2. In H2 enter =OPT_BS_CARRYCOST(A2,B2,C2,D2,E2,F2,G2). Label H1 Price change per unit carry. The result is large compared with the price because a unit decimal change is a 100-percentage-point move.
Advanced use: carry shock or dividend-yield shock
A one-percentage-point increase in carry is 0.01, so the first-order price change in this example is about 0.6368306512. For a small increase in dividend yield with the risk-free rate held fixed, carry falls by the same amount, reversing the sign of the local change. This conclusion follows from the defined relation between carry and dividend yield; the function has no dividend-yield argument of its own.
This is a derivative approximation. For a sizable shift, reprice with the changed carry instead of assuming the original derivative remains constant. Keep time and volatility unchanged when checking this particular sensitivity, or you are measuring a mixture of effects.
Help-text inconsistency and units
The inspected help contains a note referring to change “per 100% volatility.” That wording conflicts with the carry derivative calculated in the source. The executable formula differentiates with respect to carry; it does not implement vega. This guide uses the source expression and independent finite-difference control to distinguish the two.
For a call, the source computes time×spot×EXP((carry−rate)×time)×N(d1); the put version is the negative corresponding N(−d1) term. No division by option value or multiplication by carry is performed. Therefore the output is not a normalized elasticity even though that label appears in help.
Errors and troubleshooting
Unrecognized call/put flags and not-a-number results produce #NUM! in the inspected callback. Invalid lognormal inputs can create such results, but the routine is not a comprehensive input validator. Avoid zero time or volatility and nonpositive spot or strike in ordinary use; these boundaries are not separately tested here.
When comparing with another package, check whether it reports sensitivity per unit, per percentage point, or as a normalized elasticity. A factor of 100 discrepancy can come from reporting units rather than an incorrect model. No cross-product numerical equivalence is claimed by this guide.
Evidence and compatibility
Gnumeric ssconvert 1.12.57 under C.UTF-8 recalculated the exact literal examples on October 17, 2026. The OptionControls fixture recorded F6 = 63.68306511756191. These agree with the independent expectations within 10^-7, including finite-difference sensitivity error. Cell-driven layouts are instructional equivalents, not separate GUI tests. Other boundary/error statements are source-derived. Official Gnumeric 1.12.57 implementation was retrieved October 17, 2026; independent calculations use discounted-payoff quadrature and the explicitly stated derivative or survival relationships. Original introduction and last functioning release are not established. No GUI screenshot or execution of another release is claimed. These derivatives functions are registered as Gnumeric-specific; verify recalculation after export rather than relying on cached values in another application.