#initialisation of variable
P=20000.0;#in rupees
n=10.0;#in years
i=18.0;#% per annum
#calculation
F=P*(1+i/100)**n;
#result
print "Maturity value after 18 years is ", round(F,3)," Rupees.";
print " Ans in the book is not correct"
#initialisation of variable
F=100000.0;#in rupees
n=10.0;#in years
i=15.0;#% per annum
#calculation
P=F/((1.0+i/100.0)**n);
#result
print "The person has to invest ", round(P,3)," Rupees.";
print " Ans in the book is not correct"
#initialisation of variable
A=10000.0;#in rupees
n=25.0;#in years
i=20.0;#% per annum
#calculation
F=A*(((1+i/100)**n-1)/(i/100));
#result
print "The future sum of the annual equal payment after 25 years is ",round(F,3)," Rupees.";
#initialisation of variable
F=500000.0;#in rupees
n=15.0;#in years
i=18.0;#% per annum
#calculation
A=F*((i/100)/((1+i/100)**n-1));
#result
print "The annual equal ammount which must be deposited for 15 years is ",round(A,3)," Rupees.";
#initiasation of variable
A=1000000.0;#in rupees
n=20.0;#in years
i=15.0;#% per annum
#calculation
P=A*(((1+i/100)**n-1)/((i/100)*(1+i/100)**n));
#result
print "The amount of reserve which must be setup now is : ",round(P,3)," Rupees";
print " Ans in the book is not correct"
#initialisation of variable
P=1000000.0;#in rupees
n=15.0;#in years
i=18.0;#% per annum
#calculation
A=P*(((i/100)*(1+i/100)**n)/((1+i/100)**n-1));
#result
print "The annual equivalent installment to be paid by the company to the bank is ",round(A)," Rupees.";
#initiation of variable
A1=4000.0;#in rupees
G=500.0;#in rupees
n=10.0;#in years
i=15.0;#% per annum
#calculation
A=A1+G*(((1+i/100)**n-(i/100)*n-1)/((i/100)*(1+i/100)**n-(i/100)));
F=A*(((1+i/100)**n-1)/(i/100));
#result
print "At the end of 10th year, the compound amountr of all his payments will be : ",round(F,3)," Rupees.";
#initiation of variable
A1=8500.0;#in rupees
G=-500.0;#in rupees
n=10.0;#in years
i=15.0;#% per annum
#calculation
A=A1+G*(((1+i/100)**n-(i/100)*n-1)/((i/100)*(1+i/100)**n-(i/100)));
F=A*(((1+i/100)**n-1)/(i/100));
#result
print "At the end of 10th year, the compound amountr of all his payments will be : ",round(F,3)," Rupees.";
#initiation of variable
P=5000.0;#in rupees
n=10.0;#in years
i=12.0;#% per annum
m=4.0;#no. of interest periods per year for quarterly
#calculation
N=n*m;
r=i/m;
F=P*(1+r/100)**N;
#result
print"Maturity value after 10 years is ",round(F,3)," Rupees.";