TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Open source tax calculator?

12 点作者 zyncl19超过 6 年前
I want to create a budget application for my own personal use cases. I'd like to be able to calculate both withholding and end of the year taxes. Are there any open source libraries that would help me do this? I'd prefer python or C++, but would work with any language.

4 条评论

Jtsummers超过 6 年前
I wrote a withholdings calculator in Excel for myself this past year, I can try to clean it up and post it somewhere. I also developed it to the point that it gives me a very accurate estimate of my final tax refund&#x2F;owed amount (I added fields to allow me enter interest, dividend, and other income). [0] describes the withholding tables for 2019. Income tax withholding starts on page 44 and is the most relevant. Social security is 6.2% of income up to $132,900 (0% over that) and Medicare is 1.45%. It&#x27;s actually a pretty straightforward task to produce regardless of language.<p>Those plus your local state income tax withholding tables should be enough to get started on making something like this yourself.<p>The open tax solver linked looks good, but their payroll calculator assumes weekly pay which will get you in the ballpark but won&#x27;t be accurate if you are paid less frequently (you can&#x27;t even just double its numbers for biweekly pay, due presumably to rounding issues).<p>Py1040 looks ok as a start but will also only cover your end of year tax situation. It&#x27;s also using hardcoded tax tables which is unfortunate since they seem to have been last changed in 2016 and so is wrong for 2018 and forward. Using external tables to drive it would make it much easier to update.<p>The IRS Withholding calculator will, of course, be very accurate but you can&#x27;t really embed it into anything else. And if your tax situation is simpler you can elide a lot of details.<p>[0] <a href="https:&#x2F;&#x2F;www.irs.gov&#x2F;pub&#x2F;irs-pdf&#x2F;p15.pdf" rel="nofollow">https:&#x2F;&#x2F;www.irs.gov&#x2F;pub&#x2F;irs-pdf&#x2F;p15.pdf</a>
ksherlock超过 6 年前
Is the IRS Withholding calculator good enough?<p><a href="https:&#x2F;&#x2F;www.irs.gov&#x2F;individuals&#x2F;irs-withholding-calculator" rel="nofollow">https:&#x2F;&#x2F;www.irs.gov&#x2F;individuals&#x2F;irs-withholding-calculator</a>
BasicObject超过 6 年前
<a href="http:&#x2F;&#x2F;opentaxsolver.sourceforge.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;opentaxsolver.sourceforge.net&#x2F;</a>
plg超过 6 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;b-k&#x2F;py1040" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;b-k&#x2F;py1040</a>