diff --git a/Business/Finance/FinanceFormulas.php b/Business/Finance/FinanceFormulas.php index 4d1ffda5b..7a311317a 100644 --- a/Business/Finance/FinanceFormulas.php +++ b/Business/Finance/FinanceFormulas.php @@ -754,6 +754,20 @@ class FinanceFormulas return log(2) / log(1 + $r); } + /** + * Get rate to dobule + * + * @param float $t Time in which to double investment + * + * @return float + * + * @since 1.0.0 + */ + public static function getDoublingRate(float $t) : float + { + return exp(log(2) / $t) - 1; + } + /** * Doubling Time - Continuous Compounding *