+ Start a Discussion
ram t 22ram t 22 

how to write compund interest formula in apex page

Suraj Tripathi 47Suraj Tripathi 47
Hi ram t 22,

double principle = 10000;
double rate = 5;
double times = 2;
double A = principle * (Math.pow((1 + rate / 100), times));
double CI = A - principle;

I hope you find the above solution helpful. If it does, please mark it as the Best Answer to help others too.
Thanks and Regards,
Suraj Tripathi
vgfdhbg gvfdhbfgvgfdhbg gvfdhbfg
There are so many types of features available for this purpose but you can visit here (https://removalsservicepreston.co.uk/man-van-services-preston/) to see istall some features of them.
raul Sandhuraul Sandhu
Hi RamT22
i believe the correct formula is 

( Principal__c* ( 1 +  Rate__C / M ) ^ ( T * M) )