Skip to main content

Module returns

Module returns 

Source
Expand description

Educational doubling-time helpers: Rule of 72 / 69 / 70 and exact formulas.

Use doubling_solution for a full comparison at one rate (formulas + table), or doubling_compare_rates to see how approximations behave across rates.

All public functions return crate::FinanceResult (Result-only API, v0.1+).

Modules§

rule_of_72
Approximate years to double (Rule of 72 / 69 / 70) and exact doubling time.

Structs§

DoublingRateRow
One row of a multi-rate doubling comparison.
DoublingRateSeries
Table of doubling estimates across many rates (teaching: when is Rule of 72 “good enough?”).
DoublingSolution
Comparison of doubling-time methods at a single rate.

Functions§

doubling_compare_rates
Compare doubling rules across a list of rates (teaching: when is Rule of 72 “good enough?”).
doubling_solution
Build a DoublingSolution comparing Rule of 72/70/69 with exact discrete and continuous times.
doubling_time
Exact periods to double under discrete compounding: ln(2) / ln(1 + rate).
doubling_time_continuous
Exact time to double under continuous compounding: ln(2) / rate.
rule_of_69
Approximate years to double using the Rule of 69: 69 / (100 * rate).
rule_of_70
Approximate years to double using the Rule of 70: 70 / (100 * rate).
rule_of_72
Approximate years to double using the Rule of 72: 72 / (100 * rate).