# Javascript Program to Enter the P, T, R, and Calculate it's Simple Interest

ADVERTISEMENTS

__Javascript__ program to enter the P, T, R, and calculate its Simple Interest. In this article, you will learn how to find the Simple Interest through P, T, R in javascript language.

### Simple Interest Formula

`SI = (P * T * R) / 100`

### Where

**P = Principal Amount**

**T = Time**

**R = Rate**

**SI = Simple Interest**

Source Code

```
<!-- Javascript Program to Enter the P, T, R, and Calculate it's Simple Interest -->
<script type="text/javascript">
var p, t, r, SI;
// p = principal
// t = time
// r = rate
// SI = simple interest
// Calculate simple interest
p = 15;
t = 12;
r = 12;
SI = (p * t * r) / 100;
// Output
document.write("Simple Interest = " + SI);
</script>
```

### Output

`Simple Interest = 21.6`