hello,
their are two programs
1)
data earnings;
amount=1000;
rate=0.0375;
do month =1 to 12;
ci=(amount+earned)*rate;
earned+ci;
output;
end;
run;
this calculates compound interest
and second one :
2)
data earnings;
do year=1 to 20;
capital+2000;
do month =1 to 12;
interest=capital*(0.075/12);
capital+interest;
output;
end;end;
run;
which is also calculating the interest but i dont know what is happening in the second .why do they divide by 12 ?
The first one calculates 3.75 percent per month, the second one 7.5 percent per year, split over 12 months.
The first one calculates 3.75 percent per month, the second one 7.5 percent per year, split over 12 months.
what is the purpose of calculating interest this way when . Is it practically used ?
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.