Hi, as suggested, a function ...
data ci (keep=period principle); retain initial 100000 rate 0.10; do period=1 to 10; principle = compound(initial, . , rate, period); output; end; format principle dollar10.; run;
period principle
1 $110,000 2 $121,000 3 $133,100 4 $146,410 5 $161,051 6 $177,156 7 $194,872 8 $214,359 9 $235,795 10 $259,374
your formula (via Reeza's code), very generous if savings, usury if a loan ...
year principle
1 $359,374.25 2 $1,291,498.49 3 $4,641,312.95 4 $16,679,683.42 5 $59,942,486.52 6 $215,417,858.97 7 $774,156,306.45 8 $2,782,118,389.25 9 $9,998,216,984.47 10 $35,931,016,902.39
... View more