JavaScript Program to find simple interest Last Updated : 26 Jul, 2024 Comments Improve Suggest changes Like Article Like Report What is ‘Simple Interest’?Simple interest is a quick method of calculating the interest charge on a loan. Simple interest is determined by multiplying the daily interest rate by the principal by the number of days that elapse between payments.Simple Interest formula:Simple interest formula is given by: Simple Interest = (P x T x R)/100 Where, P is the principal amount T is the time and R is the rateExamples:Input : P = 10000 R = 5 T = 5Output :2500We need to find simple interest on Rs. 10,000 at the rate of 5% for 5 units of time.Input : P = 3000 R = 7 T = 1Output :210The formula to calculate the simple interest is: simple_interest = (P * T * R) / 100 where P is the principal amount, T is time & R is the rate of interest. Example: Below is the implementation of the above formula JavaScript // JavaScript program to find simple interest for // given principal amount, time and rate of // interest. let P = 1, R = 1, T = 1; /* Calculate simple interest */ let SI = (P * T * R) / 100; /* Print the resultant value of SI */ console.log("Simple Interest = " + SI); OutputSimple Interest = 0.01 Time Complexity: O(1), the execution time of the program is constant and does not depend on the size of the input.Auxiliary Space: O(1), Since the program uses a constant number of variables that do not depend on the input size, the space complexity is also O(1). Comment More infoAdvertise with us Next Article JavaScript Program to find simple interest K kartik Follow Improve Article Tags : Mathematical JavaScript Web Technologies DSA JavaScript-Program +1 More Practice Tags : Mathematical Similar Reads JavaScript Programs JavaScript Programs contains a list of articles based on programming. This article contains a wide collection of programming articles based on Numbers, Maths, Arrays, Strings, etc., that are mostly asked in interviews.Table of ContentJavaScript Basic ProgramsJavaScript Number ProgramsJavaScript Math 13 min read JavaScript Program to find nth term of Arithmetic Progression Arithmetic progression is a sequence of numbers in which the difference between any two consecutive terms is always equal. This difference between any two consecutive terms is known as a common difference and it can be positive, negative or zero. The nth term of A.P. in mathematics is calculated by 2 min read PHP Program to Find Simple Interest Simple interest is the method to calculate the interest where we only take the principal amount each time without changing it for the interest earned in the previous cycle. The formula to calculate Simple Interest is - SI = P * R * T / 100Where - I is the interest.P is the principal amount.R is the 3 min read Program to find simple interest Given Principal p, Rate r and Time t, the task is to calculate Simple Interest.Examples :Input: p = 10000, r = 5, t = 5 Output:2500 Explanation: We need to find simple interest on Rs. 10,000 at the rate of 5% for 5 units of time. Input: p = 3000, r = 7, t = 1 Output:210The basic idea is to calculate 2 min read PHP Program to Find Compound Interest Compound interest is a financial concept that calculates the interest on the initial principal and also on the accumulated interest of previous periods. It is widely used in the banking, finance, and investment sectors. In this article, we will explore different approaches to calculating compound in 2 min read Like