#initiation of variable
P=100000.0;#in Rs
F=20000.0;#in Rs
n=8.0;#in years
eoy=[0,1,2,3,4,5,6,7,8]#end of year
Bt=100000;#book vakue
#calcualtion
Dt=(P-F)/n;#in Rs.
#result
print "End of year Depreciation Book value";
for i in range (8):
B=Bt-i*Dt;
print eoy[i]," ",Dt," ", B," ";
#initiation of variable
P=100000.0;#in Rs
F=20000.0;#in Rs
n=8.0;#in years
#calculation
D5=(P-F)/n;#in Rs.
t=5;#in years
Bt=P-t*(P-F)/n;#in Rs
#result
print "D5 in Rs. : ",round(D5,3);
print "(This is independent of the time period)";
print "B5 in Rs. : ",round(Bt,3);
#initiation of variable
P=100000.0;#in Rs
F=20000.0;#in Rs
n=8.0;#in years
k=0.2
eoy=[0,1,2,3,4,5,6,7,8]#end of year
Bt=[100000.0,0,0,0,0,0,0,0,0];#book vakue
Dt=[0.0,0,0,0,0,0,0,0,0];
#result
print "End of year Depreciation Book value";
print "0 0 100000"
for i in xrange (1,9):
Dt[i]=k*Bt[i-1];
Bt[i]=Bt[i-1]-Dt[i];
print eoy[i]," ",Dt[i]," ", Bt[i]," ";
#initiation of variable
P=100000.0;#in Rs
F=20000.0;#in Rs
n=8.0;#in years
k=0.2
t=5.0;#in years
#calculation
Dt=k*(1-k)**(t-1)*P;#in Rs.
Bt=((1-k)**t)*P;#in Rs.
#result
print "D5 in Rs. : ",round(Dt,3);
print "B5 in Rs. : ",round(Bt,3);
#initiation of variable
P=100000.0;#in Rs
F=20000.0;#in Rs
n=8.0;#in years
Sum=n*(n+1)/2;#sum of the years
eoy=[0,1,2,3,4,5,6,7,8]#end of year
Bt=[100000.0,0,0,0,0,0,0,0,0];#book vakue
Dt=[0.0,0,0,0,0,0,0,0,0];
rate=[0.0,0,0,0,0,0,0,0,0];
#result
print "End of year Depreciation Book value";
print "0 0 100000"
for i in xrange (1,9):
rate[i]=(8-i+1)/36.0;
Dt[i]=rate[i]*(P-F);
Bt[i]=Bt[i-1]-Dt[i];
print eoy[i]," ",Dt[i]," ", Bt[i]," ";
#initiation of variable
P=100000.0;#in Rs
F=20000.0;#in Rs
n=8.0;#in years
t=5.0;#in years
#cacualtion
Dt=(n-t+1)*(P-F)/(n*(n+1)/2);#in Rs.
Bt=(P-F)*((n-t)/n)*((n-t+1)/(n+1))+F;#in Rs.
#result
print "D5 in Rs. : ",round(Dt,3);
print "B5 in Rs. : ",round(Bt,3);
#initiation of variable
P=100000.0;#in Rs
F=20000.0;#in Rs
n=8.0;#in years
k=0.12;
i=12.0;#in % per annum
eoy=[0,1,2,3,4,5,6,7,8]#end of year
Bt=[100000.0,0,0,0,0,0,0,0,0];#book vakue
Dt=[0.0,0,0,0,0,0,0,0,0];
rate=[0.0,0,0,0,0,0,0,0,0];
SUM=0;
#calculation
A=(P-F)*(i/100)/(((1+i/100)**n)-1);
#result
print "End of year Net Depreciation Book value";
print "0 0 100000"
for i in xrange (1,9):
Dt[i]=k*SUM+A;
SUM=SUM+Dt[i]
Bt[i]=Bt[i-1]-Dt[i];
print eoy[i]," ",round(Dt[i],3)," ", round(Bt[i],3)," ";
print "fixed deprececiation which is constant in Rs",round(A,3);
#initiation of variable
P=100000.0;#in Rs
F=20000.0;#in Rs
n=8.0;#in years
i=12.0;#in % per annum
t=5.0;#in Years
#calculation
Dt=(P-F)*(i/100)/(((1+i/100)**n)-1)*(1+i/100)**(t-1);#in Rs.
t=7;#in Years
Bt=P-(P-F)*(i/100)/(((1+i/100)**n)-1)*(((1+i/100)**t)-1)/(i/100);#in Rs.
#result
print "D7 in Rs. : ",round(Dt,3);
print "B7 in Rs. : ",round(Bt,3);
#initiation of variable
P=8000000.0;#in Rs
F=50000.0;#in Rs
X=75000.0;#in Km
x=2000.0;#in Km
n=8.0;#in years
i=12.0;#in % per annum
#calcualtion
D=(P-F)*x/X;#in Rs.
#result
print "Depreciation for year 3 in Rs. : ",round(D,3);