Skip to main content
Org PSL cataloged OS License: CCO-1.0 Jupyter Book Badge
Package Python 3.11 Python 3.12 Python 3.13 PyPI Latest Release PyPI Downloads Code style: black
Testing example event parameter example event parameter example event parameter Codecov

Cost-of-Capital-Calculator

Cost-of-Capital-Calculator is a model that can be used to evaluate the effect of US federal taxes on the investment incentives of corporate and non-corporate businesses. Specifically, Cost-of-Capital-Calculator uses data on the business assets and financial policy, as well as microdata on individual tax filers, to compute marginal effective tax rates on new investments. In modeling the effects of changes to the individual income tax code, Cost-of-Capital-Calculator works with Tax-Calculator, another open-source model of US federal tax policy. Cost-of-Capital-Calculator is written in Python, an interpreted language that can execute on Windows, Mac, or Linux.

Installation

The ccc package can be installed with Anaconda via:

conda install -c conda-forge ccc

or with PyPI via:

pip install cost-of-capital-calculator

Web Application

Cost-of-Capital-Calculator is available through a web application, Cost of Capital Calculator. This app allows you to generate estimates of marginal effective tax rates and the cost of capital across production industries, type of asset, and separately for corporate and non-corporate entities and different forms of financing. The web application is limited in that you cannot consider policy reforms to the individual income tax code.

Contributing to Cost-of-Capital-Calculator

To contribute to Cost-of-Capital-Calculator, you'll want to clone the GitHub repository to your own machine, where you can work with and edit the source code. To do this, follow the following instructions:

  • Install the Anaconda distribution of Python
  • Clone this repository to a directory on your computer
  • From the terminal (or Conda command prompt), navigate to the directory to which you cloned this repository and run conda env create -f environment.yml
  • Then, conda activate ccc-dev
  • Run the model with an example reform from terminal/command prompt by typing python example.py
  • You can adjust the example.py by adjusting the individual income tax reform (using a dictionary or JSON file in a format that is consistent with Tax Calculator) or other model parameters specified in the business_tax_adjustments dictionary.
  • Model outputs will be saved in the following files:
    • ./baseline_byasset.csv
      • Cost of capital, marginal effective tax rates, effective average tax rates, and other model output for the baseline policy, organized by asset.
    • ./baseline_byindustry.csv
      • Cost of capital, marginal effective tax rates, effective average tax rates, and other model output for the baseline policy, organized by production industry.
    • ./reform_byasset.csv
      • Cost of capital, marginal effective tax rates, effective average tax rates, and other model output for the reform policy, organized by asset.
    • ./reform_byindustry.csv
      • Cost of capital, marginal effective tax rates, effective average tax rates, and other model output for the refrom policy, organized by production industry.
    • ./changed_byasset.csv
      • Differences in cost of capital, marginal effective tax rates, effective average tax rates, and other model output between the baseline and reform reform policies, organized by asset.
    • ./changed_byindustry.csv
      • Differences in cost of capital, marginal effective tax rates, effective average tax rates, and other model output between the baseline and reform reform policies, organized by production industry.

The CSV output files can be compared to the ./example_output/*_expected.csv files that are checked into the repository to confirm that you are generating the expected output. The easiest way to do this is to use the ./example-diffs command (or example-diffs on Windows). If you run into errors running the example script, please open a new issue in the Cost-of-Capital-Calculator repo with a description of the issue and any relevant tracebacks you receive.

Disclaimer

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

Citing the Cost-of-Capital-Calculator Model

Cost-of-Capital-Calculator (Version 2.1.1)[Source code], https://github.com/PSLmodels/Cost-of-Capital-Calculator

Metadata

Release files for cost-of-capital-calculator 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cost-of-capital-calculator 2.1.1
File Size Uploaded
cost_of_capital_calculator-2.1.1.tar.gz 2.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for cost-of-capital-calculator 2.1.1
File Interpreter ABI Platform
cost_of_capital_calculator-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.2 MB

Release files / cost_of_capital_calculator-2.1.1.tar.gz

Download URL cost_of_capital_calculator-2.1.1.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
19720e5d32369d565934789fa299a72d3a9e245e732bcb6b9dc09bfee00041d5
BLAKE2b-256 checksum
How to use checksums
08b8b8cda349835b49f58d5bc3baf495ac73bd5db2852fd0b6b4dd4b5847b7f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / cost_of_capital_calculator-2.1.1-py3-none-any.whl

Download URL cost_of_capital_calculator-2.1.1-py3-none-any.whl
Size 2.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
83a393d816033e74faf28c21c869f4b6710a9a03c700087ae21fc6caae4d4738
BLAKE2b-256 checksum
How to use checksums
100ea13e08d31b759049ecc55699fcca5815ac9246a1172621e07f405b1b5cda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.5.2

2 release files

1.5.1

1 release file

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.11

2 release files

1.2.10

2 release files

1.2.9

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page