Syed Ashraf khalid
Syed Ashraf khalid

Reputation: 3

How to make a formula of ppf in Java

I would like to know to define the formula of ppf (public provident fund )in java code.

I have tried

p*(Math.pow(1+i/100,t));

but I am getting it wrong

Pff formula is:

F = P[{(1+i)n-1}/i]

where,

The formula works like duration - 3 years and interest -7.1%

1 0 1,00,000 7,100.04 1,07,100

2 1,07,100 1,00,000 14,704.08 2,21,804

3 2,21,804 1,00,000 22,848.12 3,44,652

Upvotes: 0

Views: 348

Answers (0)

Related Questions