Fixed deposit calculator
A deterministic, stateless calculator that turns a single term deposit into its full output picture: maturity value, gross interest, after-tax maturity, effective annual yield, and side-by-side comparison of how different compounding frequencies change the same deposit. Product-neutral: works as a Fixed Deposit, Term Deposit, or Certificate of Deposit — no country-specific tax law is hardcoded.
Every output has a formula-trace line. Every input is audited as used / defaulted / unused. Nominal vs effective rate is a first-class toggle, not buried. Cumulative vs payout are explicitly separate modes — you cannot accidentally compare apples-to-oranges.
How much does compounding frequency actually move the maturity number?
| Compounding | Periods / yr | Periodic rate | Effective annual | Maturity | Interest | vs yearly |
|---|---|---|---|---|---|---|
| Yearly | 1 | 5.0000% | 5.000% | $11,576.25 | $1,576.25 | — |
| Half-yearly | 2 | 2.5000% | 5.062% | $11,596.93 | $1,596.93 | +$20.68 |
| Quarterly selected | 4 | 1.2500% | 5.095% | $11,607.55 | $1,607.55 | +$31.30 |
| Monthly | 12 | 0.4167% | 5.116% | $11,614.72 | $1,614.72 | +$38.47 |
| Daily | 365 | 0.0137% | 5.127% | $11,618.22 | $1,618.22 | +$41.97 |
What if the bank's quote moves by 25 bps before you lock in?
How the balance compounds year-by-year
| Year | Opening balance | Interest credited | Closing balance |
|---|---|---|---|
| Y1 | $10,000.00 | +$509.45 | $10,509.45 |
| Y2 | $10,509.45 | +$535.41 | $11,044.86 |
| Y3 | $11,044.86 | +$562.68 | $11,607.55 |
- principal = 10000 × Ones = 10000.00 USD
- periodsPerYear = 4 (quarterly)
- periodicRate = 1.250000% (from 5% nominal apr)
- periods = round(3 × 4) = 12
- effectiveAnnualYield = (1 + periodicRate)^4 − 1 = 5.094534%
- maturityAmountGross = principal × (1 + periodicRate)^periods = 11607.55
- grossInterestEarned = maturity − principal = 1607.55
- No tax or withholding modeled — FD/CD interest is generally taxable as ordinary income; the after-tax maturity will be lower than shown.
- Early-withdrawal penalties and deposit-insurance caps are not modeled. Country-specific tax (TDS thresholds, slabs, exemptions) is whatever rate you type — no jurisdictional rules are hardcoded.
Rate normalization, compounding comparison, rate scenarios, yearly schedule, formula trace, and input audit are all reachable as a stateless REST endpoint and as MCP tools. Unknown inputs are rejected with a 422; ignored-in-context inputs are flagged in the audit — no input is silently consumed.
calculate_fixed_deposit_returns- No workbook save/load — v1 is intentionally stateless.
- No early-withdrawal penalty modeling.
- No country-specific tax law (TDS thresholds, slab rules, exemptions) — tax is whatever rate you type.
- No leap-year handling in daily compounding (uses 365 days flat; surfaced in warnings).
- No premium prefill — there is no ticker data for FDs.