• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Calculating the "Compound Annual Growth Rate".

New Here ,
Oct 04, 2007 Oct 04, 2007

Copy link to clipboard

Copied


I am trying to calculate the Compound Annual Growth Rate. I know what the forumla is (see link below), but cannot work out how to do this calculation within Cold Fusion... which functions to use nor how to string them together.

Was hoping someone with a bit more experience with CFs mathematical functions could help.

The formula I am trying to calculate within CF can be found at: http://www.investopedia.com/terms/c/cagr.asp

Many thanks in advance to the genius that can help me crack this one.

Cheers
TOPICS
Advanced techniques

Views

257

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Oct 05, 2007 Oct 05, 2007
<cfset partOne = endingValue / beginningValue>
<cfset partTwo = 1 / numberOfYears>
<cfset compoundAnnualGrowthRate = (partOne ^ partTwo) - 1>

Hope that makes sense!

Votes

Translate

Translate
Engaged ,
Oct 05, 2007 Oct 05, 2007

Copy link to clipboard

Copied

<cfset partOne = endingValue / beginningValue>
<cfset partTwo = 1 / numberOfYears>
<cfset compoundAnnualGrowthRate = (partOne ^ partTwo) - 1>

Hope that makes sense!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 05, 2007 Oct 05, 2007

Copy link to clipboard

Copied

LATEST
Simon, your a champ. Works perfectly. Many Thanks !!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation