<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

    <!-- Shared -->
    <record id="rule_parameter_941_fit_allowance" model="hr.rule.parameter">
        <field name="name">Federal 941 FIT Allowance</field>
        <field name="code">fed_941_fit_allowance</field>
        <field name="country_id" ref="base.us"/>
    </record>
    <record id="rule_parameter_941_fit_allowance_2019" model="hr.rule.parameter.value">
        <field name="parameter_value">{
            'weekly':            80.80,
            'bi-weekly':        161.50,
            'semi-monthly':     175.00,
            'monthly':          350.00,
            'quarterly':       1050.00,
            'semi-annually':   2100.00,
            'annually':        4200.00,
            }</field>
        <field name="rule_parameter_id" ref="rule_parameter_941_fit_allowance"/>
        <field name="date_from" eval="datetime(2019, 1, 1).date()"/>
    </record>
    <record id="rule_parameter_941_fit_allowance_2020" model="hr.rule.parameter.value">
        <!-- Warning, major change to allowance in 2020 -->
        <field name="parameter_value">4300.0</field>
        <field name="rule_parameter_id" ref="rule_parameter_941_fit_allowance"/>
        <field name="date_from" eval="datetime(2020, 1, 1).date()"/>
    </record>

    <record id="rule_parameter_941_fit_nra_additional" model="hr.rule.parameter">
        <field name="name">Federal 941 FIT NRA Additional</field>
        <field name="code">fed_941_fit_nra_additional</field>
        <field name="country_id" ref="base.us"/>
    </record>
    <record id="rule_parameter_941_fit_nra_additional_2020" model="hr.rule.parameter.value">
        <field name="parameter_value">{
            'weekly':           238.50,
            'bi-weekly':        476.90,
            'semi-monthly':     516.70,
            'monthly':         1033.30,
            'quarterly':       3100.00,
            'semi-annually':   6200.00,
            'annually':       12400.00,
            }</field>
        <field name="rule_parameter_id" ref="rule_parameter_941_fit_nra_additional"/>
        <field name="date_from" eval="datetime(2020, 1, 1).date()"/>
    </record>

    <!-- Single and Married Single Rate -->
    <record id="rule_parameter_941_fit_table_single" model="hr.rule.parameter">
        <field name="name">Federal 941 FIT Table Single</field>
        <field name="code">fed_941_fit_table_single</field>
        <field name="country_id" ref="base.us"/>
    </record>
    <record id="rule_parameter_941_fit_table_single_2020" model="hr.rule.parameter.value">
        <!-- Major changes in 2020 -->
        <!-- Wage Threshold, Base Withholding Amount, Marginal Rate Over Threshold -->
        <field name="parameter_value">{
            'standard': [
                (       0.00,      0.00,   0.00),
                (    3800.00,      0.00,   0.10),
                (   13675.00,    987.50,   0.12),
                (   43925.00,   4617.50,   0.22),
                (   89325.00,  14605.50,   0.24),
                (  167100.00,  33271.50,   0.32),
                (  211150.00,  47367.50,   0.35),
                (  522200.00, 156235.00,   0.37),
            ],
            'higher': [
                (       0.00,      0.00,   0.00),
                (    6200.00,      0.00,   0.10),
                (   11138.00,    493.75,   0.12),
                (   26263.00,   2308.75,   0.22),
                (   48963.00,   7302.75,   0.24),
                (   87850.00,  16635.75,   0.32),
                (  109875.00,  23683.75,   0.35),
                (  265400.00,  78117.50,   0.37),
            ],
            }</field>
        <field name="rule_parameter_id" ref="rule_parameter_941_fit_table_single"/>
        <field name="date_from" eval="datetime(2020, 1, 1).date()"/>
    </record>

    <!-- Married -->
    <record id="rule_parameter_941_fit_table_married" model="hr.rule.parameter">
        <field name="name">Federal 941 FIT Table Married</field>
        <field name="code">fed_941_fit_table_married</field>
        <field name="country_id" ref="base.us"/>
    </record>
    <record id="rule_parameter_941_fit_table_married_2020" model="hr.rule.parameter.value">
        <!-- Major changes in 2020 -->
        <!-- Wage Threshold, Base Withholding Amount, Marginal Rate Over Threshold -->
        <field name="parameter_value">{
            'standard': [
                (       0.00,      0.00,   0.00),
                (   11900.00,      0.00,   0.10),
                (   31650.00,   1975.00,   0.12),
                (   92150.00,   9235.00,   0.22),
                (  182950.00,  29211.00,   0.24),
                (  338500.00,  66543.00,   0.32),
                (  426600.00,  94735.00,   0.35),
                (  633950.00, 167307.50,   0.37),
            ],
            'higher': [
                (       0.00,      0.00,   0.00),
                (   12400.00,      0.00,   0.10),
                (   22275.00,    987.50,   0.12),
                (   52525.00,   4617.50,   0.22),
                (   97925.00,  14605.50,   0.24),
                (  175700.00,  33271.50,   0.32),
                (  219750.00,  47367.50,   0.35),
                (  323425.00,  83653.75,   0.37),
            ],
            }</field>
        <field name="rule_parameter_id" ref="rule_parameter_941_fit_table_married"/>
        <field name="date_from" eval="datetime(2020, 1, 1).date()"/>
    </record>

    <record id="rule_parameter_941_fit_table_hh" model="hr.rule.parameter">
        <field name="name">Federal 941 FIT Table Head of Household</field>
        <field name="code">fed_941_fit_table_hh</field>
        <field name="country_id" ref="base.us"/>
    </record>
    <record id="rule_parameter_941_fit_table_hh_2020" model="hr.rule.parameter.value">
        <!-- Major changes in 2020 -->
        <!-- Wage Threshold, Base Withholding Amount, Marginal Rate Over Threshold -->
        <field name="parameter_value">{
            'standard': [
                (       0.00,      0.00,   0.00),
                (   10050.00,      0.00,   0.10),
                (   24150.00,   1410.00,   0.12),
                (   63750.00,   6162.00,   0.22),
                (   95550.00,  13158.00,   0.24),
                (  173350.00,  31830.00,   0.32),
                (  217400.00,  45926.00,   0.35),
                (  528450.00, 154793.50,   0.37),
            ],
            'higher': [
                (       0.00,      0.00,   0.00),
                (    9325.00,      0.00,   0.10),
                (   16375.00,    705.00,   0.12),
                (   36175.00,   3081.00,   0.22),
                (   52075.00,   6579.00,   0.24),
                (   90975.00,  15915.00,   0.32),
                (  113000.00,  22963.00,   0.35),
                (  268525.00,  77396.75,   0.37),
            ],
            }</field>
        <field name="rule_parameter_id" ref="rule_parameter_941_fit_table_hh"/>
        <field name="date_from" eval="datetime(2020, 1, 1).date()"/>
    </record>

</odoo>