Apply a Discount Factor
finance.present_value
Overview
Perform bounded exact-decimal present value with every rate, factor, bound, and profile explicit. Fixed precision, closed input, typed failures, and no ambient financial data apply.
You receive an exact scalar result and explicit profile receipt for finance.present_value.
Reliability
DECIMAL_INVALID means a malformed or over-limit decimal; correct it. RATE_INVALID means a rate or rebate mode violates its domain; correct it. FACTOR_INVALID means time, year fraction, or factor is negative or malformed; correct it. PROFILE_INVALID means compounding mode, frequency, time, or exponent is invalid; select a valid profile. ZERO_DENOMINATOR means a discount denominator is zero; change rate or profile. BOUNDS_INVALID means a floor, cap, fee, or rebate is inconsistent; correct its bounds. ROUNDING_INVALID means mode or scale is unsupported; select a published mode and scale. ITEM_LIMIT_EXCEEDED means compound work exceeds 10,000 steps; reduce time or frequency. This guidance applies specifically to finance.present_value.
Context footprint
The compact result replaces repeated prompt arithmetic for finance.present_value. A successful call costs 1 execution credit.
When to use it
When a future amount must be scaled by an already-computed discount factor.
When you still need to turn a rate into a discount factor; compute the factor first.
Scope
Non-goals
- Does not infer rates, factors, calendars, compounding, tax, or accounting policy for finance.present_value.
- Does not fetch market data, mutate records, or process unbounded input for finance.present_value.
Properties
Capabilities
Cost & billing
Flat rate per invocation
File handling
How we handle your data
What this means
This skill may receive sensitive content, but it does not target sensitive data and returns only a structured non-sensitive result.
Squillify guarantees
- Runs inside Squillify
- This skill runs inside Squillify.
- Payloads are not sent to an external service by this skill.
- Squillify does not permanently store submitted payloads.
- Telemetry records metadata only, not submitted content.
- Submitted payloads are not used for training.
- Submitted payloads are not reviewed by humans.
- This skill does not target sensitive data.
- The response does not contain submitted content.
Your responsibility
Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
| cashFlow | string | Yes | Future cash-flow amount. Required finite plain decimal without exponent notation. |
| discountFactor | string | Yes | Non-negative supplied discount factor. Required finite plain decimal without exponent notation. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| presentValue | string | Yes | Cash flow times supplied discount factor. Returned as a normalized plain-decimal string. |
API contract
POST /v1/executecurl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"finance.present_value","input":{"cashFlow":"110","discountFactor":"0.5"}}'import { Squillify } from "@squillify/sdk";
const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });
const { output } = await sq.execute("finance.present_value", {"discountFactor":"0.5","cashFlow":"110"});Errors
| Code | HTTP | Retryable | Description |
|---|---|---|---|
| VALIDATION_ERROR | 400 | No | The request payload failed schema validation. |
| UNAUTHORIZED | 401 | No | Missing or invalid API key. |
| SKILL_NOT_ACCESSIBLE | 403 | No | The API key is not granted access to this skill. |
| SKILL_NOT_AVAILABLE_FOR_PLAN | 403 | No | This skill is not included in your current plan. |
| PLAN_ELIGIBILITY_UNAVAILABLE | 503 | Yes | Plan eligibility could not be decided. Retry after backoff. |
| SKILL_NOT_FOUND | 404 | No | The requested skill or version does not exist. |
| TENANT_RATE_LIMITED | 429 | Yes | Request rate limit exceeded. Retry after backoff. |
| QUOTA_EXCEEDED | 429 | Yes | Plan quota exhausted. Retryable once the quota period resets. |
| EXECUTION_TIMEOUT | 504 | Yes | Execution exceeded the allowed time budget. |
| DECIMAL_INVALID | 400 | No | The request payload failed this skill's input validation. |
| FACTOR_INVALID | 400 | No | The request payload failed this skill's input validation. |
Other limits
| Limit | Value |
|---|---|
| Recommended inline bytes | 32 KiB |
Limitations
- Does not infer rates, factors, calendars, compounding, tax, or accounting policy for finance.present_value.
- Does not fetch market data, mutate records, or process unbounded input for finance.present_value.
- Inferred rates, day counts, calendars, or accounting policy
- Inputs outside the explicit scalar bounds for finance.present_value.
How to call
POST /v1/execute (requires authentication)
{
"skillKey": "finance.present_value",
"input": {
"discountFactor": "0.5",
"cashFlow": "110"
}
}Examples
Verified calculation
{
"discountFactor": "0.5",
"cashFlow": "110"
}{
"presentValue": "55"
}Alternative calculation
{
"discountFactor": "1",
"cashFlow": "-10"
}{
"presentValue": "-10"
}Recommended use cases
- Auditable exact-decimal present value
- Bounded rate-factor and fee calculations for finance.present_value.
Avoid for
- Inferred rates, day counts, calendars, or accounting policy
- Inputs outside the explicit scalar bounds for finance.present_value.
Related skills
Composable with
Safety & privacy
- Runs without calling any external service.
- Your payloads are never stored permanently.
- Telemetry captures metadata only — never your payload contents.
- We never train models on your payloads.
- No human reviews your payloads.