omni_rule_of_72
Calculate exact and heuristic investment doubling periods from an annual interest rate, including Rule of 72, Rule of 70, and Rule of 69.3 results to avoid manual arithmetic errors.
Instructions
Rule of 72 Investment Doubling Calculator. Calculate exact and heuristic investment doubling periods using the logarithmic Rule of 72, Rule of 70, and Rule of 69.3. Discipline: FINANCE. Governing mathematical model / formula: Years to Double ≈ 72 / Interest Rate % (Exact: ln(2) / ln(1 + r)).
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of rule_72_years (Rule of 72 Doubling Time), exact_doubling_years (Exact Analytical Doubling Time), rule_70_years (Rule of 70 (Continuous)) using interest_rate (Annual Interest Rate (%) in %). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Rule of 72 Investment Doubling Calculator' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "rule-of-72"
category (string): "finance"
name (string): "Rule of 72 Investment Doubling Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.rule_72_years (Rule of 72 Doubling Time): Formatted display string (e.g. '9.00 years')
metrics.exact_doubling_years (Exact Analytical Doubling Time): Formatted display string (e.g. '9.01 years')
metrics.rule_70_years (Rule of 70 (Continuous)): Formatted display string (e.g. '8.75 years')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_rule_of_72"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interest_rate | No | Annual Interest Rate (%) (%). Compound return rate. Default: 8. Min: 0.5. Max: 50. |