Skip to content

Instantly share code, notes, and snippets.

@djassie
Created June 8, 2024 11:44
Show Gist options
  • Save djassie/53149d73d94cf799cb5407b0cd198f70 to your computer and use it in GitHub Desktop.
Save djassie/53149d73d94cf799cb5407b0cd198f70 to your computer and use it in GitHub Desktop.
Total Salary Earned by a West Bengal Gove Employee
yearly_salary = 660000
# This salary is taken into account of a BDO - oficer
# This is calculate total salary earned by a Govt Employee in West Bengal (55000 per month in hand), with 4% increment yearly - 35 years service
# most optimistic salary saved is 60% - to average optimistic 45%
years = 0
total_salary_earned = yearly_salary
total_salary_earned_in_cr = total_salary_earned/10000000
total_salary_saved_in_cr = total_salary_earned_in_cr * 0.45
monthly_salary = yearly_salary/12
while(years<35):
# total_salary_saved_in_cr += total_salary_earned_in_cr * 0.6
print("year="+str(years)+" monthly salary="+str(monthly_salary)+" total salary earned in cr "+str(total_salary_earned_in_cr)
+ " total money saved in cr="+str(total_salary_saved_in_cr))
yearly_salary = yearly_salary*(1.04)
total_salary_saved_in_cr = total_salary_saved_in_cr + ((yearly_salary * 0.45)/10000000)*1.06 #considering fixed deposit 6%
total_salary_earned += yearly_salary
monthly_salary = yearly_salary/12
total_salary_earned_in_cr = total_salary_earned/10000000
# print("year="years " monthly salary="yearly_salary/12" total salary earned in cr "total_salary_earned/10000000)
# print("year="+str(years)+" monthly salary="+str(monthly_salary)+" total salary earned in cr "+str(total_salary_earned_in_cr))
# print("years="+years)
years += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment