package
0.0.0-20241013172635-ae4de9d44709
Repository: https://github.com/mattfenwick/algorithms.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
EstimateMedicareTax takes into account:
- filing status
- for wages: the base medicare rate, plus the threshold above which an additional rate is imposed
- for capital gains: the threshold above which NIIT is imposed
As far as I can tell, the way this works is:
- wage income is taxed "first", with two brackets: 1.45%, and 2.35%
- investment income is taxed "second", with two brackets: 0%, and 3.8% "second" meaning: start with the wage income from 0, then add the investment income on top of that
- no deductions are applicable
- income is taxed either as wage or as investment, but never as both
Some resources:
- https://www.irs.gov/taxtopics/tc559.
some social security resources:
https://www.ssa.gov/oact/cola/cbb.html#:~:text=For%20earnings%20in%202024%2C%20this,for%20employees%20and%20employers%2C%20each.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO as of Oct 2024, these are not yet official.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TaxYearConstants organizes key constants for each tax year
Some notes: - half of social security is typically paid by the employer - the social security limit is per-person - half of medicare is typically paid by the employer - the medicare threshold limit is per-person according to https://www.irs.gov/taxtopics/tc751 -- but TODO, am I misunderstanding that?.