Calculators tools

Practical calculators for LLM context windows, API costs, VRAM estimates and home mortgages.

Context Window Calculator Convert between tokens, English words and book pages, with presets for GPT, Claude and Gemini context windows. Free, browser-based. LLM API Cost Calculator Estimate monthly LLM API spend: pick a model, enter input/output tokens and request volume. Prices for GPT, Claude, Gemini. Free, private. LLM VRAM Calculator Estimate GPU VRAM for running an LLM: parameters × quantization (FP16/INT8/Q4/Q2) plus context KV cache. Free, browser-based. Mortgage Calculator Calculate monthly mortgage payments, total interest and amortization from loan amount, rate and term, with a balance chart. Free, private. Date Duration Calculator Calculate the duration between two dates in days, weeks, months and working days. Free browser-based date difference calculator. Aspect Ratio Calculator Calculate new dimensions by aspect ratio: 16:9, 4:3, 1:1, 9:16, 21:9 presets with width or height lock. Free, instant, browser-based. China Transit Visa Calculator Check eligibility for China’s 240-hour visa-free transit: 54-country nationality list, third-country route rule and stay-length buffer. Free, private, in-browser. QPS & TPS Calculator Convert QPS, TPS, RPS, concurrency and response time; estimate peak QPS from DAU or daily PV; size servers and LLM instances; convert RPM/TPM rate limits. Free, private, browser-based. Database Sharding Calculator Estimate how many shards your database needs from data size, growth and QPS, with replication, skew and reshard timing. Free, private, browser-based. WebSocket Capacity Calculator WebSocket connections calculator: how many can one server hold? Estimate capacity from memory and fd limits; size broadcast bandwidth, heartbeat overhead and the fleet. Free, private, browser-based. Retry Backoff Calculator Retry backoff calculator: build a retry delay schedule from initial delay, multiplier and max delay. Compare jitter strategies, fit retries into a deadline, size retry traffic against rate limits. Free, private, browser-based. Cache Hit Ratio Calculator Cache hit ratio calculator: compute hit rate from hits and misses, average memory access time (AMAT) and speedup, backend offload and cost saved, and cache sizing. Free, private, browser-based. Storage Bandwidth Calculator Storage bandwidth calculator: convert IOPS and block size to MB/s, GB/min and TB/h, size backup and copy windows, and compare RAID 0/1/5/6/10 usable capacity, IOPS and rebuild times. Free, private, browser-based. Connection Pool Size Calculator Connection pool size calculator: size a database connection pool with Little's Law, the HikariCP cores×2+spindles rule, pool wait utilisation, and a max_connections budget across services. Free, private, browser-based.

When you need these tools

Two different moments. Planning an LLM feature: how many tokens the prompt really uses, whether it fits a 128k context window, what a million requests a month will cost, how much VRAM the local model needs. And everyday arithmetic with rules attached: mortgage payments, days between two dates, whether a layover in China fits the 240-hour transit exemption, what QPS your API must survive at peak. The point of each is the same — a defensible number before you commit code, money or a flight booking.

A typical workflow

Sizing an LLM feature end to end:

  1. Paste the real system prompt into the LLM Token Counter — measured, not guessed.
  2. Feed that number into the Context Window Calculator together with expected history and output length.
  3. Multiply by expected volume in the LLM API Cost Calculator for a monthly figure you can put in a plan.
  4. If part of the workload runs locally, check which model sizes fit your GPU in the LLM VRAM Calculator.

How they work together

The calculators share assumptions rather than data: token counts from the counter are what the context and cost tools expect as input, and the QPS & TPS Calculator turns a traffic estimate into the per-second rate you need for capacity planning. Off-site, their outputs are sanity checks against the vendor's own pricing and tokenizer docs — prices and context sizes change often, so treat every figure as a plan, then verify the constants before you sign anything.