Skip to content

Commit

Permalink
Merge pull request #711 from GoFroggyRun/private_django
Browse files Browse the repository at this point in the history
LGTM. Merging. Thanks @GoFroggyRun
  • Loading branch information
hdoupe committed Oct 26, 2017
2 parents 6e8dc46 + e9fef49 commit 2fa70f4
Show file tree
Hide file tree
Showing 33 changed files with 1,113 additions and 103 deletions.
2 changes: 1 addition & 1 deletion templates/btax/includes/params/inputs/depreciation.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% block content %}
<div class="inputs-block-header">
<h1>Depreciation</h1>
{% flatblock "ccc_depreciation_blurb" %}
<p>Tax depreciation schedules</p>
{% block section_warnings %}
{% endblock %}
<button
Expand Down
2 changes: 1 addition & 1 deletion templates/btax/includes/params/inputs/macro_econ.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1>Macroeconomic Variables</h1>
aria-controls="macro-econ-collapse">
<span class="glyphicon glyphicon-plus" style="font-size:2em; margin-bottom:5px"></span>
</button>
{% flatblock "ccc_macro_econ_blurb" %}
<p>Economic baseline</p>
{% block section_warnings %}
{% endblock %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/btax/includes/params/inputs/other.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1>Other</h1>
aria-controls="other-collapse">
<span class="glyphicon glyphicon-plus" style="font-size:2em; margin-bottom:5px"></span>
</button>
{% flatblock "ccc_other_blurb" %}
<p>Other taxes or incentives affecting new capital formation</p>
{% block section_warnings %}
{% endblock %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/btax/includes/params/inputs/taxes.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1>Business Income Tax Rates</h1>
aria-controls="taxes-collapse">
<span class="glyphicon glyphicon-plus" style="font-size:2em; margin-bottom:5px"></span>
</button>
{% flatblock "ccc_payroll_blurb" %}
<p>Top marginal rates on business income at the business-entity level</p>
{% block section_warnings %}
{% endblock %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/btax/input_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</ul>
</div>
<div class="footer-main-text">
{% flatblock "ccc_footer" %}
<p>A platform for accessing OSPC's open-source tax models.</p>
</div>
</div>
</div>
Expand Down
95 changes: 91 additions & 4 deletions templates/btax/input_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<h2 class="sr-only">TaxBrain</h2>
<img src="{% static 'images/btax/cost-of-capital-white-blue.png' %}" alt="TaxBrain" class="img-responsive" style="height:108px;">
</div>
{% flatblock "ccc_subheader" %}
<p class="lead">A platform for accessing open-source tax models.</p>
<a href="#get-started" class="btn btn-primary btn-explore">Start Exploring</a>
<div class="what-is">
<a class="collapsed" data-toggle="collapse" href="#taxbrainInfo" aria-expanded="false" aria-controls="taxbrainInfo">What is the Cost of Capital Calculator?</a>
Expand All @@ -34,7 +34,50 @@ <h2 class="sr-only">TaxBrain</h2>
<div class="container">
<div class="taxbrain-history">
<h2>About Cost of Capital Calculator</h2>
{% flatblock "ccc_what_is_ccc_dropdown" %}
<h1> What is the Cost of Capital Calculator? </h1>
<p>The Cost of Capital Calculator is an interface to <a href = "//www.github.com/open-source-economics" target="_blank">open source economic models</a> for tax policy analysis. <a href = '//www.github.com/opensourcepolicycenter/webapp-public' target="_blank">The code</a> for the Cost of Capital Calculator webapp interface is itself open source. </p>

<ul>
<li> <strong>Step 1.</strong> Create a policy reform by modifying tax law parameters such as rates and depreciation schedules, adjust the economic assumptions, and request the static result.</li>
<li><strong>Step 2.</strong> Review your static output carefully. Ask questions.</li>
<li><strong>Step 3.</strong> Share your results! The link to every results page is static and will never change. Send them around.</li>
</ul>

<p> Throughout this process, if you have a question about how to use the Cost of Capital Calculator or interpret the results, if you want to make a suggestion for making the interface or underlying models better, or if you discover a bug, please send a message to our mailing list, which you can join at <a href = '//list.ospc.org/mailman/listinfo/users_list.ospc.org' target="_blank">list.ospc.org/mailman/listinfo/users_list.ospc.org</a>.</p>

<p><strong>Disclaimer</strong>

<p>Proper use of this tool and description of that use is ultimately your responsibility. If you plan on publishing your results, I highly recommend that you confirm with the community that you are using the tools properly and interpreting the results correctly before you publish them. If you have a compelling reason not to leave a public note on the mailing list, email me at matt.jensen@aei.org.</p>

<p>Results will change as the underlying models improve. A fundamental reason for adopting open source methods in this project is to let people from all backgrounds contribute to the models that our society uses to assess economic policy; when community-contributed improvements are incorporated, the models will produce different results.</p>

<p>Neither the Open Source Policy Center nor the American Enterprise Institute maintain institutional positions, and the results from models accessible via the TaxBrain interface should not be attributed directly to OSPC or AEI. A suggested acknowledgement is, "We thank AEI for making TaxBrain available, but we bear sole responsibility for the use of the models and any conclusions drawn."</p>

<p><strong> - Matt Jensen, managing director and founder of the Open Source Policy Center </strong></p>

<hr>

<h1>Static modeling (Step 1)</h1>

<p> Static tax analysis entails computing changes in marginal effective tax rates on new investment under the assumption that behavior does not change in response to tax policy. Static analyses are useful for understanding the mechanistic effects of tax policy changes, and they form the basis to which behavior is applied for dynamic analyses.

<p><strong>Accuracy notes</strong></p>

<p>The Python code that performs the cost of capital calculations has been validated in a
number of ways. First, Cost of Capital Results results for a number of asset types have been compared to hand calculations performed using current law tax policy parameters. Second, Cost of Capital Calculator results for a large number of assets
have been compared to results for the same assets generated ).
<a href = 'https://www.cbo.gov/sites/default/files/109th-congress-2005-2006/reports/12-18-taxrates.pdf' target="_blank">by the Congressional Budget Office</a> (using CBO assumptions).

<p> Bugs aside, the results from the Cost of Capital Calculator might differ in comparison to those produced by Congress or the Administration for other reasons. Modeling requires many assumptions, and neither Congress nor the executive branch publicize all of their assumptions. For example, marginal effective total tax rates produced by the Cost of Capital Calculator assume the "old view" of dividend taxation. Others might assume the "new view" is more applicable. These assumptions are all flexible in <a href = '//www.github.com/open-source-economics/B-Tax' target="_blank">the Cost of Capital Calculator</a>, so please conduct sensitivity analyses. Other assumptions can be made flexible in the Cost of Capital Calculator based on user requests.</p>

<p><strong>
Core Maintainers (static modeling)*:
<ul style = "list-style-type:none">
<li>- <a href = "http://www.jasondebacker.com" target = "blank" >Jason DeBacker, University of South Carolina</a></li>
<li>- <a href = "https://github.com/bfgard" target = "blank" >Benjamin Gardner, Brigham Young University</a></li>
</ul>
</strong></p>
<p> These members have "write access" to the core modeling repositories, B-Tax, and work as a team to determine which open source contributions are accepted.</p>
</div>
<div class="taxbrain-build">
<h2>PolicyBrain Code Build</h2>
Expand Down Expand Up @@ -81,9 +124,53 @@ <h2>B-Tax Code Build</h2>

<div class="inputs-block inputs-block-intro">
<div class="inputs-block-header">
{% flatblock "ccc_above_get_started_blurb" %}
<h1> What is the Cost of Capital Calculator? </h1>
<p>The Cost of Capital Calculator is an interface to <a href = "//www.github.com/open-source-economics/b-tax" target="_blank">B-Tax</a>, an open source economic model for tax policy analysis. <a href = '//www.github.com/opensourcepolicycenter/webapp-public' target="_blank">The code</a> for the Cost of Capital Calculator webapp interface is itself open source. </p>


<ul>
<li> <strong>Step 1.</strong> Create a policy reform by modifying tax law parameters such as rates and depreciation schedules, adjust the economic assumptions, and request the static result.</li>
<li><strong>Step 2.</strong> Review your static output carefully. Ask questions.</li>
<li><strong>Step 3.</strong> Share your results! The link to every results page is static and will never change. Send them around.</li>
</ul>

<p> Throughout this process, if you have a question about how to use the Cost of Capital Calculator or interpret the results, if you want to make a suggestion for making the interface or underlying models better, or if you discover a bug, please send a message to our mailing list, which you can join at <a href = '//list.ospc.org/mailman/listinfo/users_list.ospc.org' target="_blank">list.ospc.org/mailman/listinfo/users_list.ospc.org</a>.</p>

<p><strong>Disclaimer</strong>

<p>Proper use of this tool and description of that use is ultimately your responsibility. If you plan on publishing your results, I highly recommend that you confirm with the community that you are using the tools properly and interpreting the results correctly before you publish them. If you have a compelling reason not to leave a public note on the mailing list, email me at matt.jensen@aei.org.</p>

<p>Results will change as the underlying models improve. A fundamental reason for adopting open source methods in this project is to let people from all backgrounds contribute to the models that our society uses to assess economic policy; when community-contributed improvements are incorporated, the models will produce different results.</p>

<p>Neither the Open Source Policy Center nor the American Enterprise Institute maintain institutional positions, and the results from models accessible via the Cost of Capital Calculator interface should not be attributed directly to OSPC or AEI. A suggested acknowledgement is, "We thank the Open Source Policy Center for making the Cost of Capital Calculator available, but we bear sole responsibility for the use of the models and any conclusions drawn."</p>

<p><strong> - Matt Jensen, managing director and founder of the Open Source Policy Center </strong></p>

<hr>

<h1>Effective Tax Rate Calculations</h1>

<p>The Cost of Capital Calculator produces estimates of the marginal effective tax rates on new investment under the baseline tax policy and user-specified tax reforms. These effective rate calculations take two forms. The marginal effective tax rate (METR) provides the tax wedge on new investment at the level of the business entity. The marginal effective total tax rate (METTR) includes individual level taxes in the measure of the tax wedge on new investment. One can think of the former as indicating the effect of taxes on incentives to invest from the perspective of the firm and the latter as representing effect of taxes on incentives to invest from the perspective of the saver. For more detail on the calculations and assumptions underlying this model, please see the <a href = "https://github.com/open-source-economics/B-Tax/blob/master/Notes_and_Guides/CCC_Guide.pdf" target = "_blank"> CCC Guide</a>.</p>

<p><strong>Accuracy notes</strong></p>

<p>The Python code that performs the cost of capital calculations has been validated in a
number of ways. First, Cost of Capital Calculator results have been compared to calculations performed with other software using current law tax policy parameters. Second, Cost of Capital Calculator results for a large number of assets
have been compared to results for the same assets generated
<a href = 'https://www.cbo.gov/sites/default/files/109th-congress-2005-2006/reports/12-18-taxrates.pdf' target="_blank">by the Congressional Budget Office</a> (using CBO assumptions).

<p> Results from the Cost of Capital Calculator might differ in comparison to those produced by Congress or the Administration. Modeling requires many assumptions, and neither Congress nor the executive branch publicize all of their assumptions. For example, the marginal effective total tax rates produced by the Cost of Capital Calculator assume the "old view" of dividend taxation. Others might assume the "new view" is more applicable. These assumptions are all flexible in the underlying model, <a href = '//www.github.com/open-source-economics/B-Tax' target="_blank">B-Tax</a>, so please conduct sensitivity analyses. Assumptions can be made flexible in this online interface, the Cost of Capital Calculator, based on user requests.</p>

<p><strong>
Core Maintainers (static modeling)*:
<ul style = "list-style-type:none">
<li>- <a href = "http://www.jasondebacker.com" target = "blank" >Jason DeBacker, University of South Carolina</a></li>
<li>- <a href = "https://github.com/bfgard" target = "blank" >Benjamin Gardner, Brigham Young University</a></li>
</ul>
</strong></p>
<p> These members have "write access" to the core modeling repositories, B-Tax, and work as a team to determine which open source contributions are accepted.</p>
<h1 id="get-started">Get Started</h1>
{% flatblock "ccc_get_started_blurb" %}
<h3>User tips</h3>
<div>
You are looking at default parameters for {{start_year}}.
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/btax/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
{% include 'taxbrain/header.html' %}
<div class="result-header">
<div class="result-header-control">
<h1>{% flatblock "ccc_results_header" %}</h1>
<h1> <p>Tables of Effective Tax Rates or Their Components by Asset or Industry</p> </h1>
</div>

<p class="meta">These results were generated by <a href="https://github.com/OpenSourcePolicyCenter/webapp-public/tree/v{{webapp_version}}"> PolicyBrain version {{ webapp_version }}</a> on {{ created_on|date:"D, M jS Y \a\t g:iA" }} UTC using <a href="https://github.com/open-source-economics/B-Tax/tree/{{btax_version}}"> B-Tax version {{ btax_version }}.</a> </p>
Expand Down

0 comments on commit 2fa70f4

Please sign in to comment.