Skip to content

Commit

Permalink
Deploying to gh-pages from @ 9b758a0 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholmer committed Jul 8, 2024
1 parent 841c269 commit 39484c0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
12 changes: 9 additions & 3 deletions _modules/taxcalc/calcfunctions.html
Original file line number Diff line number Diff line change
Expand Up @@ -3636,7 +3636,7 @@ <h1>Source code for taxcalc.calcfunctions</h1><div class="highlight"><pre>
<span class="k">def</span> <span class="nf">CTC_new</span><span class="p">(</span><span class="n">CTC_new_c</span><span class="p">,</span> <span class="n">CTC_new_rt</span><span class="p">,</span> <span class="n">CTC_new_c_under6_bonus</span><span class="p">,</span>
<span class="n">CTC_new_ps</span><span class="p">,</span> <span class="n">CTC_new_prt</span><span class="p">,</span> <span class="n">CTC_new_for_all</span><span class="p">,</span> <span class="n">CTC_include17</span><span class="p">,</span>
<span class="n">CTC_new_refund_limited</span><span class="p">,</span> <span class="n">CTC_new_refund_limit_payroll_rt</span><span class="p">,</span>
<span class="n">CTC_new_refund_limited_all_payroll</span><span class="p">,</span> <span class="n">payrolltax</span><span class="p">,</span>
<span class="n">CTC_new_refund_limited_all_payroll</span><span class="p">,</span> <span class="n">payrolltax</span><span class="p">,</span> <span class="n">exact</span><span class="p">,</span>
<span class="n">n24</span><span class="p">,</span> <span class="n">nu06</span><span class="p">,</span> <span class="n">age_head</span><span class="p">,</span> <span class="n">age_spouse</span><span class="p">,</span> <span class="n">nu18</span><span class="p">,</span> <span class="n">c00100</span><span class="p">,</span> <span class="n">MARS</span><span class="p">,</span> <span class="n">ptax_oasdi</span><span class="p">,</span>
<span class="n">c09200</span><span class="p">,</span> <span class="n">ctc_new</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
Expand Down Expand Up @@ -3664,6 +3664,8 @@ <h1>Source code for taxcalc.calcfunctions</h1><div class="highlight"><pre>
<span class="sd"> New child tax credit refund limit applies to all FICA taxes, not just OASDI</span>
<span class="sd"> payrolltax: float</span>
<span class="sd"> Total (employee + employer) payroll tax liability</span>
<span class="sd"> exact: int</span>
<span class="sd"> Whether or not exact phase-out calculation is being done</span>
<span class="sd"> n24: int</span>
<span class="sd"> Number of children who are Child-Tax-Credit eligible, one condition for which is being under age 17</span>
<span class="sd"> nu06: int</span>
Expand Down Expand Up @@ -3698,8 +3700,12 @@ <h1>Source code for taxcalc.calcfunctions</h1><div class="highlight"><pre>
<span class="n">ctc_new</span> <span class="o">=</span> <span class="nb">min</span><span class="p">(</span><span class="n">CTC_new_rt</span> <span class="o">*</span> <span class="n">posagi</span><span class="p">,</span> <span class="n">ctc_new</span><span class="p">)</span>
<span class="n">ymax</span> <span class="o">=</span> <span class="n">CTC_new_ps</span><span class="p">[</span><span class="n">MARS</span> <span class="o">-</span> <span class="mi">1</span><span class="p">]</span>
<span class="k">if</span> <span class="n">posagi</span> <span class="o">&gt;</span> <span class="n">ymax</span><span class="p">:</span>
<span class="n">ctc_new_reduced</span> <span class="o">=</span> <span class="nb">max</span><span class="p">(</span><span class="mf">0.</span><span class="p">,</span>
<span class="n">ctc_new</span> <span class="o">-</span> <span class="n">CTC_new_prt</span> <span class="o">*</span> <span class="p">(</span><span class="n">posagi</span> <span class="o">-</span> <span class="n">ymax</span><span class="p">))</span>
<span class="n">over</span> <span class="o">=</span> <span class="n">posagi</span> <span class="o">-</span> <span class="n">ymax</span>
<span class="k">if</span> <span class="n">exact</span> <span class="o">==</span> <span class="mi">1</span><span class="p">:</span> <span class="c1"># exact calculation as on tax form</span>
<span class="n">excess</span> <span class="o">=</span> <span class="n">math</span><span class="o">.</span><span class="n">ceil</span><span class="p">(</span><span class="n">over</span> <span class="o">/</span> <span class="mf">1000.</span><span class="p">)</span> <span class="o">*</span> <span class="mf">1000.</span>
<span class="k">else</span><span class="p">:</span> <span class="c1"># smoothed calculation</span>
<span class="n">excess</span> <span class="o">=</span> <span class="n">over</span>
<span class="n">ctc_new_reduced</span> <span class="o">=</span> <span class="nb">max</span><span class="p">(</span><span class="mf">0.</span><span class="p">,</span> <span class="n">ctc_new</span> <span class="o">-</span> <span class="n">CTC_new_prt</span> <span class="o">*</span> <span class="n">excess</span><span class="p">)</span>
<span class="n">ctc_new</span> <span class="o">=</span> <span class="nb">min</span><span class="p">(</span><span class="n">ctc_new</span><span class="p">,</span> <span class="n">ctc_new_reduced</span><span class="p">)</span>
<span class="k">if</span> <span class="n">ctc_new</span> <span class="o">&gt;</span> <span class="mf">0.</span> <span class="ow">and</span> <span class="n">CTC_new_refund_limited</span><span class="p">:</span>
<span class="n">refund_new</span> <span class="o">=</span> <span class="nb">max</span><span class="p">(</span><span class="mf">0.</span><span class="p">,</span> <span class="n">ctc_new</span> <span class="o">-</span> <span class="n">c09200</span><span class="p">)</span>
Expand Down
6 changes: 3 additions & 3 deletions recipes/recipe00.html
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ <h2>Plotting<a class="headerlink" href="#plotting" title="Link to this heading">
</style>
<div>
<a href="https://bokeh.org" target="_blank" class="bk-notebook-logo"></a>
<span id="c79e2ed0-d697-439b-89b4-113ae5a79203">Loading BokehJS ...</span>
<span id="e95caba7-c066-4e2d-b780-900cdc00bb9a">Loading BokehJS ...</span>
</div>
</div><script type="application/javascript">'use strict';
(function(root) {
Expand Down Expand Up @@ -864,7 +864,7 @@ <h2>Plotting<a class="headerlink" href="#plotting" title="Link to this heading">
"</div>"}};

function display_loaded(error = null) {
const el = document.getElementById("c79e2ed0-d697-439b-89b4-113ae5a79203");
const el = document.getElementById("e95caba7-c066-4e2d-b780-900cdc00bb9a");
if (el != null) {
const html = (() => {
if (typeof root.Bokeh === "undefined") {
Expand Down Expand Up @@ -998,7 +998,7 @@ <h2>Plotting<a class="headerlink" href="#plotting" title="Link to this heading">
console.log("Bokeh: BokehJS failed to load within specified timeout.");
root._bokeh_failed_load = true;
} else if (force !== true) {
const cell = $(document.getElementById("c79e2ed0-d697-439b-89b4-113ae5a79203")).parents('.cell').data().cell;
const cell = $(document.getElementById("e95caba7-c066-4e2d-b780-900cdc00bb9a")).parents('.cell').data().cell;
cell.output_area.append_execute_result(NB_LOAD_WARNING)
}
}
Expand Down
2 changes: 1 addition & 1 deletion recipes/recipe04.html
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ <h1>Recipe 4: Estimating Differential Reform Response<a class="headerlink" href=
ALL 204.484 3.749 1.17
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_2175/3804893807.py:46: FutureWarning: The default of observed=False is deprecated and will be changed to True in a future version of pandas. Pass observed=False to retain current behavior or observed=True to adopt the future default and silence this warning.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_2094/3804893807.py:46: FutureWarning: The default of observed=False is deprecated and will be changed to True in a future version of pandas. Pass observed=False to retain current behavior or observed=True to adopt the future default and silence this warning.
gbydf = vdf.groupby(&#39;table_row&#39;, as_index=False)
</pre></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 39484c0

Please sign in to comment.