News for hackers. Stuff that matters.
Re:Show HN: A Tax Calculator for India by kartickv on Wednesday March 20, 2019 @11:44PM (#19449128)
I built this command-line tax calculator as a side project.

This script determines:

- When you're made an offer for a given CTC, how much will you take home every month?

- If you want a certain amount of take-home pay every month, what CTC should you ask for? This is for Indians.

This script handles:

- Differing tax treatments for employees and consultants. The latter are eligible for presumptive taxation under section 44AD.

- Health and education cess

- Surcharge

- GST

- PF and pension

- Section 80C investments

- Professional tax

Re:Show HN: A Tax Calculator for India by amirathi on Saturday March 23, 2019 @12:23AM (#19469057)
Nice work! Do consider slapping a simple UI and hosting it somewhere online. You'll be surprised how many organic visits it'll get a year or two from now.

Bonus points if the website copy overlaps well with search keywords :)

Re:Show HN: A Tax Calculator for India by godzilla82 on Thursday March 21, 2019 @10:10AM (#19452513)
I am not sure if you have handled this or even if it is possible to handle the fact that the "basic" component of the salary is not a fixed percentage of the CTC. So two people with same CTC can have different "basic". This basic component also determines the max exemptions you can claim for e.g. under HRA. Also, employers themselves try to structure the basic and the HRA components to reduce the tax burden of their employees by modifying the basic. Exemptions under HRA have to be declared by the employer.
Re:Show HN: A Tax Calculator for India by kartickv on Thursday March 21, 2019 @01:04PM (#19454662)
Good point. The comments at the top of the file say what's handled and what's not, and HRA is not.

About basic, yes, that's a pain.

Re:Show HN: A Tax Calculator for India by godzilla82 on Friday March 22, 2019 @03:30AM (#19460268)
Sorry, dont want to sound too negative, but the tax calculator is so simple it doesn't handle even the most basic stuff. I am guessing you have never paid tax at the income tax website. I would suggest you to go the income tax website and see the inputs that the calculator takes.
Re:Show HN: A Tax Calculator for India by kartickv on Friday March 22, 2019 @05:21AM (#19460761)
I did look at that and many other tax calculators, and some are so complex that people don't know what to put in. It's intimidating.

I built this for my needs. If you want it to handle HRA, or LTA, or income 1 crore and above, etc, that's an entirely reasonable point of view, and I'd welcome a pull request if you have the time.

Re:Show HN: A Tax Calculator for India by godzilla82 on Saturday March 23, 2019 @01:12AM (#19469154)
But am I correct in my assumption that you have never paid taxes yet? :) Any one who has ever been on a payroll will know that the basic component is dynamic. Also I don't know anyone who does not claim any exemptions!
Re:Show HN: A Tax Calculator for India by kartickv on Sunday March 24, 2019 @12:29PM (#19477176)
Ha ha, no I've paid a variety of taxes: income, professional, capital gains... I've been an employee and now a startup founder. I also help others with taxes.

The script does have a field for EMPLOYEE_TAX_DEDUCTION. It defaults to 1.6 lac, assuming 1.5 lac for 80C and 10K for the rest (like medical insurance under 80D or whatever). But you can change it to whatever number you want to include other exemptions like HRA and LTA.

I think some things like PF and HRA are calculated based on basic income, but I was able to approximate the calculation without bringing basic income into account. Salary for the purpose of PF is limited to 15K anyway.

Again, enhancements welcome.

Re:Show HN: A Tax Calculator for India by jpatokal on Thursday March 21, 2019 @07:25AM (#19451029)
For the non-Indians in the audience, what is "CTC"?
Re:Show HN: A Tax Calculator for India by victor106 on Thursday March 21, 2019 @07:36AM (#19451100)
Cost To Company

When I was in India a number of years ago, this term got thrown around a lot. I had no idea what it meant.

It basically means what is the total cost to a company for hiring you. Not just the salary they pay you but other costs like insurance, stock options, other benefits etc.,

Re:Show HN: A Tax Calculator for India by webbrahmin on Thursday March 21, 2019 @07:34AM (#19451089)
Cost to Company ie what an employee costs a company. It is also sometimes used in place of salary although incorrectly.
Re:Show HN: A Tax Calculator for India by kartickv on Thursday March 21, 2019 @08:47AM (#19451664)
Sorry for that. As the other comments point out, it's used inconsistently. The way I've used it here is to include the employer's contribution to pension and provident fund (retirement savings), not just the employee contribution.
Re:Show HN: A Tax Calculator for India by kranner on Thursday March 21, 2019 @06:40AM (#19450753)
Section 44ADA, not 44AD.

44AD is for businesses and has a presumptive taxable income of 8% of gross income. 44ADA is for (eligible) individuals and has a presumptive taxable income of 50% of gross income.

Re:Show HN: A Tax Calculator for India by kartickv on Thursday March 21, 2019 @08:51AM (#19451687)
You can change the 50% to the 8% by editing that parameter in the code.

According to my CA, individuals might be eligible for both depending on what they do. It's not just for businesses. If you're providing a service, like a freelance programmer, it's 50%. But if you're building your own product, it's 8%. Or some such distinction.

In any case, the script supports both; just change the parameter.