MRFFL: MR Fortran Finance Library 2024-12-28
Computational Tools For Finance
|
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] |
Compute Taxes for USA.
Copyright (c) 2024, Mitchell Jay Richling http://www.mitchr.me/ All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.H.E.!!
Definition in file mrffl_us_taxes.f90.