A simple Canadian income tax calculator.
Project description
Canatax: The Canadian Income Tax Calculator
Canatax is a simple and straightforward package for calculating Canadian income taxes based on the current year's tax rates. Whether you want to quickly calculate your federal and provincial taxes, CPP, EI, or after-tax income, Canatax makes it easy with no additional dependencies.
Features
- Current Year Rates: Calculates taxes based on the most up-to-date rates for the current year.
- Federal and Provincial Taxes: Automatically determines federal and provincial taxes based on your income and province.
- CPP and EI Deductions: Includes Canada Pension Plan (CPP) and Employment Insurance (EI) deductions in the calculation.
- After-Tax Income: Provides your net income after all deductions.
Installation
You can install Canatax via pip:
pip install canatax
Usage
Quick Usage Example with the TaxCalculator Class
Here's a quick example of how to use the TaxCalculator class to calculate your taxes:
from canatax import TaxCalculator
# Example income and province
income = 80000
province = "AB"
# Calculate tax estimate
estimate = TaxCalculator.calculate(income=income, province=province)
# Or create an instance of TaxCalculator, if you prefer
calculator = TaxCalculator(income=income, province=province)
estimate = calculator.calculate_all()
# Output the results
print(estimate.federal_tax)
print(estimate.provincial_tax)
print(estimate.cpp)
print(estimate.ei)
print(estimate.total_tax)
print(estimate.after_tax_income)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file canatax-0.1.tar.gz.
File metadata
- Download URL: canatax-0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bd9d3470af6cbdc0ff31a6be8fb42efb07524f1ef15afb7a2f1dbf216a701e4
|
|
| MD5 |
982af3fcd97b3e99b5fb80c809fcf9f0
|
|
| BLAKE2b-256 |
f9ffbf844a41fbe832952c4cb56af02eb58e73cd39a820f931425213e7447c3b
|
File details
Details for the file canatax-0.1-py3-none-any.whl.
File metadata
- Download URL: canatax-0.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f90a243f6beb0a0b7d24f2ac369c78849e74e2b9cab5132ef249f36f3fc8bb01
|
|
| MD5 |
8593f407494cb47838c57e670911743d
|
|
| BLAKE2b-256 |
7b3fe48484a12243569d01d562e046bfed67aacd0c594877cd25d76eecfe212b
|