ucost=10000
#.7 => 1 year: 40 lakh, capital: 2lakh, ucost: 10k
#1 =>1.10 lakhs,300 units, capital : 2lakh, ucost: 10k
roiday=1/100.0
capital=200000
nounits = 0
no_years = 3
days_per_year = 365
basic_family_monthly_expense=15000
good_family_monthly_expense=30000
mile_stone=0
# if we start with 20k investment, ucost: 10k, roiday: 1% =>
for i in range(0, no_years*days_per_year+1):
if capital >=ucost:
nounits= nounits + int(capital/ucost)
capital = capital%ucost
else:
capital = capital + nounits * (ucost *roiday)
#print i, nounits, capital
daily_earning = nounits * (ucost *roiday)
monthly_earning = daily_earning * 30
yearly_earning = daily_earning * 365
if mile_stone == 0 and monthly_earning >=basic_family_monthly_expense:
print "Milestone 1: *Succesful basic basic_family_monthly_expense reached at :", i
mile_stone =1
if mile_stone == 1 and monthly_earning >=good_family_monthly_expense:
print "Milestone 2: *Succesful basic good_family_monthly_expense reached at :", i
mile_stone = 2
if i %30 ==0:
print "Mohtly report:" , i/30
print "no_units:", nounits, "daily_earning:", daily_earning, ",next monthly_earning with current capacity:", monthly_earning
pass
if i % days_per_year == 0:
print "#------------------------------------------"
print "After " , (i/days_per_year), " year(s)"
print "------------------------------------------"
print "Total units:", nounits
print "Capital:", capital
print "Daily earning:", daily_earning
print "Monthly earning in lakhs:", (monthly_earning/100000)
print "Yearly eearning in crore:", (yearly_earning/10000000)
print "------------------------------------------#"
#.7 => 1 year: 40 lakh, capital: 2lakh, ucost: 10k
#1 =>1.10 lakhs,300 units, capital : 2lakh, ucost: 10k
roiday=1/100.0
capital=200000
nounits = 0
no_years = 3
days_per_year = 365
basic_family_monthly_expense=15000
good_family_monthly_expense=30000
mile_stone=0
# if we start with 20k investment, ucost: 10k, roiday: 1% =>
for i in range(0, no_years*days_per_year+1):
if capital >=ucost:
nounits= nounits + int(capital/ucost)
capital = capital%ucost
else:
capital = capital + nounits * (ucost *roiday)
#print i, nounits, capital
daily_earning = nounits * (ucost *roiday)
monthly_earning = daily_earning * 30
yearly_earning = daily_earning * 365
if mile_stone == 0 and monthly_earning >=basic_family_monthly_expense:
print "Milestone 1: *Succesful basic basic_family_monthly_expense reached at :", i
mile_stone =1
if mile_stone == 1 and monthly_earning >=good_family_monthly_expense:
print "Milestone 2: *Succesful basic good_family_monthly_expense reached at :", i
mile_stone = 2
if i %30 ==0:
print "Mohtly report:" , i/30
print "no_units:", nounits, "daily_earning:", daily_earning, ",next monthly_earning with current capacity:", monthly_earning
pass
if i % days_per_year == 0:
print "#------------------------------------------"
print "After " , (i/days_per_year), " year(s)"
print "------------------------------------------"
print "Total units:", nounits
print "Capital:", capital
print "Daily earning:", daily_earning
print "Monthly earning in lakhs:", (monthly_earning/100000)
print "Yearly eearning in crore:", (yearly_earning/10000000)
print "------------------------------------------#"
No comments:
Post a Comment