Loading [MathJax]/extensions/tex2jax.js
MRFFL: MR Fortran Finance Library 2024-12-28
Computational Tools For Finance
All Namespaces Files Functions Variables
mrffl_us_taxes.f90 File Reference

Compute Taxes for USA. More...

Go to the source code of this file.

Modules

module  mrffl_us_taxes
 Compute Taxes for USA.
 

Functions/Subroutines

integer(kind=ik) function, public mrffl_us_taxes::max_bracket (val, brackets)
 Find the bracket val belongs in given an array of bracket end points.
 
real(kind=rk) function, public mrffl_us_taxes::tax (val, breaks, rates)
 Compute tax given value, bracket breaks, and bracket rates.
 
real(kind=rk) function, public mrffl_us_taxes::effective_tax_rate (val, breaks, rates)
 Compute effective tax rate given value, bracket breaks, and bracket rates.
 
real(kind=rk) function, public mrffl_us_taxes::projected_tax (val, breaks, rates, year, inflation)
 Compute projected effective tax rate with tax() by adjusting the breaks into the future for inflation.
 

Variables

integer(kind=ik), parameter, public mrffl_us_taxes::seed_tax_year = 2024
 
real(kind=rk), parameter, public mrffl_us_taxes::std_tax_deduction_single = 14600
 
real(kind=rk), parameter, public mrffl_us_taxes::std_tax_deduction_joint = 29200
 
real(kind=rk), parameter, public mrffl_us_taxes::std_tax_deduction_separately = 14600
 
real(kind=rk), parameter, public mrffl_us_taxes::std_tax_deduction_head = 21900
 
real(kind=rk), dimension(7), parameter, public mrffl_us_taxes::tax_bracket_rates = [ 10, 12, 22, 24, 32, 35, 37]
 
real(kind=rk), dimension(7), parameter, public mrffl_us_taxes::tax_bracket_breaks_single = [11600, 47150, 100525, 191950, 243725, 609350, 609351]
 
real(kind=rk), dimension(7), parameter, public mrffl_us_taxes::tax_bracket_breaks_joint = [23200, 94300, 201050, 383900, 487450, 731200, 731201]
 
real(kind=rk), dimension(7), parameter, public mrffl_us_taxes::tax_bracket_breaks_head = [16550, 63100, 100500, 191950, 243700, 609350, 609350]
 
real(kind=rk), dimension(7), parameter, public mrffl_us_taxes::tax_bracket_breaks_separately = [11600, 47150, 100525, 191950, 243725, 365600, 365601]
 

Detailed Description

Compute Taxes for USA.

Author
Mitch Richling http://www.mitchr.me/
Date
2024-12-21
Keywords
finance fortran monte carlo inflation cashflow time value of money tvm percentages taxes stock market
Standards
F2023
See also
https://github.com/richmit/FortranFinance

.H.E.!!

Definition in file mrffl_us_taxes.f90.