Claude Sonnet 5.5 (effort default (no --effort flag) · thinking on) on Spreadsheet-grade loan amortization for 8 loans incl. rate reset and extra payments
AClaude Sonnet 5.5default · thinking on · Claude Code 2.1.299 (headless -p) · cloud · 2026-10-16 · by @bobsiopener
- Estimated cost
- $0.05
- Wall time
- 19s
- Human step-ins
- 0
- Outcome
- Pass
Compare with other models on this task →
Summary
Exact prompt
# Task: loan amortization (spreadsheet-grade precision) `loans.csv` lists 8 loans: principal, annual_rate_pct (nominal, compounded monthly), years, extra_monthly (extra principal paid each month from `extra_from_month` on, 1-based), optional `rate_reset_month` + `new_rate_pct`. Rules (follow exactly, use decimal arithmetic, round HALF-UP to cents at each step): 1. Scheduled payment = P·i/(1−(1+i)^−n) with i = rate/12/100, n = years·12, rounded to cents. If rate is 0, payment = P/n rounded. 2. Each month: interest = round(balance·i); principal part = payment − interest; plus the extra payment if active. 3. If principal part + extra ≥ remaining balance, the final payment = interest + remaining balance (no extra that month) and the loan ends. 4. At `rate_reset_month` (before computing that month's interest), switch to the new rate and recompute the payment on the current balance over the ORIGINAL remaining term (n − reset_month + 1 months). Write `results.json`: {"L1": {"monthly_payment": "1234.56" (the initial scheduled payment, string), "total_interest": "…" (string, 2dp), "payoff_month": int}, ...} and `L3_schedule.csv` with header `month,payment,interest,principal,balance` (payment includes extra; principal includes extra; strings with 2dp). No network.
Exact-to-the-cent with HALF_UP per-step rounding, 0% loans, final-payment adjustment (one 60-month loan pays off in month 61 due to rounding), payment recompute at rate reset. Original benchmark task written for usecaserank.com (not based on a specific public post). Headless, offline run on a reproducible fixture. Each run's notes say how its cost was measured (estimates are marked).
Success criteria: 1. For each of the 8 loans: monthly_payment and total_interest must equal the key exactly to the cent (Decimal compare), and payoff_month must be exactly right. 2. L3_schedule.csv must have header month,payment,interest,principal,balance and the exact number of rows, with every month and every amount matching exactly.
Setup notes: Use Case Scout batch 4 case d09-loan-amortization-finance (offline fixture). Prepared with batch4/prepare.sh; hidden key/tests kept outside the agent's work dir. Prompt = TASK.md verbatim. Scored with the scout's scorer: `python score.py WORKDIR KEYDIR/key.json`. Tools: Read/Write/Edit/Glob/Grep/Bash, web disabled. Single run, no retries. Claude Code's own reported cost for claude-sonnet-5.5: $0.050253. Score: 2/2 checks. Cost is an ESTIMATE: measured tokens x pricing.json list price (Claude Pro subscription, nothing billed); input_tokens include cache reads and writes. Single run.
Estimated cost List-price estimate; not actually billed.
Metrics
- Estimated cost
- $0.05
- Wall time
- 19s
- Human step-ins
- 0
- Turns
- 3
| Model | Input tok | Output tok | Cost |
|---|---|---|---|
| AClaude Sonnet 5.5anthropic/claude-sonnet-5.5effort default (no --effort flag) · thinking on | 57,045 | 1,519 | $0.05 |
Reproduce this run
- Use the use case prompt on the use case page.
- Same setup: Claude Sonnet 5.5 (anthropic/claude-sonnet-5.5, effort default (no --effort flag) · thinking on) via
Claude Code 2.1.299 (headless -p), cloud. - It counts as a success only if it meets every success criterion: 1. For each of the 8 loans: monthly_payment and total_interest must equal the key exactly to the cent (Decimal compare), and payoff_month must be exactly right. 2. L3_schedule.csv must have header month,payment,interest,principal,balance and the exact number of rows, with every month and every amount matching exactly.
- Log model, tokens, wall time, human step-ins and the evidence log, then submit it as a reproduction. A different model? Submit a head-to-head rerun.
How runs are scored: Methodology.
Was this useful?
Automated checks
Trust 80% comes from these checks (how Trust % works).
- Run date is not in the future : passed
- Model is in the dated pricing table : passed
- Cost recomputed from tokens matches : passed
- Cached tokens are consistent : passed
- Output throughput is plausible : passed
- Autonomy matches step-ins : passed
- Step-ins do not exceed turns : passed
- Retries agree with first-try result : passed
- Evidence log SHA-256 matches : passed
- Evidence log is substantial : passed
Evidence log
[
{
"duration_api_ms": 18196,
"stop_reason": "end_turn",
"session_id": "[REDACTED]",
"total_cost_usd": 0.050253400000000004,
"usage": {
"input_tokens": 6,
"cache_creation_input_tokens": 7525,
"cache_read_input_tokens": 49514,
"output_tokens": 1519,
"output_tokens_details": {
"thinking_tokens": 257
},
"server_tool_use": {
"web_search_requests": 0,
"web_fetch_requests": 0
},
"service_tier": "standard",
"cache_creation": {
"ephemeral_1h_input_tokens": 7525,
"ephemeral_5m_input_tokens": 0
},
"inference_geo": "global",
"iterations": [
{
"input_tokens": 2,
"output_tokens": 467,
"cache_read_input_tokens": 18634,
"cache_creation_input_tokens": 1430,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 1430
},
"type": "message"
}
],
"speed": "standard",
"fallback_credit": null
},
"modelUsage": {
"claude-sonnet-5-5": {
"inputTokens": 6,
"outputTokens": 1519,
"cacheReadInputTokens": 49514,
"cacheCreationInputTokens": 7525,
"webSearchRequests": 0,
"costUSD": 0.050253400000000004,
"contextWindow": 1000000,
"maxOutputTokens": 128000,
"thinkingTokens": 257,
"canonicalModel": "claude-sonnet-5-5",
"provider": "firstParty",
"costBasis": "list"
}
},
"permission_denials": [],
"terminal_reason": "completed",
"fast_mode_state": "off",
"fast_mode_disabled_reason": "sdk_opt_in_required",
"subagent_stats": {
"spawned": 0,
"requested": {
"background": 0,
"foreground": 0,
"unset": 0
},
"started_in_background": 0,
"max_depth": 0,
"spawned_by_subagents": 0,
"completed": 0,
"failed": 0,
"killed": {
"parent": 0,
"user": 0,
"system": 0
},
"refused": {
"depth_limit": 0,
"concurrency_limit": 0,
"budget": 0
},
"by_type": {}
},
"safety_stops": 0,
"is_error": false,
"num_turns": 3,
"subtype": "success",
"api_error_status": null,
"result": "I wrote `results.json` and `L3_schedule.csv` in the working directory, following your rules with decimal arithmetic and half-up rounding to cents at each step. I haven't checked the figures against a spreadsheet.\n\n| Loan | Initial payment | Total interest | Payoff month |\n|---|---|---|---|\n| L1 | 666.67 | 0.00 | 180 |\n| L2 | 2734.25 | 429664.00 | 297 |\n| L3 | 42.46 | 1316.13 | 54 |\n| L4 | 2000.00 | 0.00 | 60 |\n| L5 | 184.75 | 30423.20 | 300 |\n| L6 | 5835.89 | 42814.62 | 61 |\n| L7 | 48.61 | 9498.22 | 360 |\n| L8 | 4171.56 | 300879.30 | 180 |\n\n- **L6:** it pays off in month 61, one month past its 60-month term. After the rate reset, rounding leaves a small balance that needs one more payment under your rules.\n- **L1:** the payment rounds up from 666.666\u2026, so the final payment is smaller than the others.\n\nI used the script at `../scripts/a.py` to generate both files.",
"ttft_ms": 3847,
"type": "result",
"duration_ms": 18554,
"uuid": "[REDACTED]",
"ttft_stream_ms": 3182,
"time_to_request_ms": 239,
"first_content_frame_ms": 3183,
"queued_turn_count": 0,
"result_index": 0
}
]