Skip to main content

A simple Canadian income tax calculator.

Project description

Canatax: The Canadian Income Tax Calculator

Development Status

Note: This package is currently in development. Expect frequent updates and potential breaking changes.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

canatax-0.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

canatax-0.2.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

canatax-0.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file canatax-0.2.tar.gz.

File metadata

  • Download URL: canatax-0.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for canatax-0.2.tar.gz
Algorithm Hash digest
SHA256 019695f8af5b236bb7526241e9c7770971412bb0b90775b70fcc3bdac72a5ee5
MD5 8d7cc2838a2b7f382054ef31bef117eb
BLAKE2b-256 22b1d1a9586ab2ac3a370fc3c5b33bd03a9f01c02320780d2488adefcd907ee4

See more details on using hashes here.

File details

Details for the file canatax-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: canatax-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for canatax-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3af239761a6dc89850d26c78f3bd73fa9ce579ae07e0cdef7ab514da713f4f8f
MD5 833f5061b9a6fdff79c981f47f94416e
BLAKE2b-256 ac64bbbce6adc0801784d6d68d1c8b61e82057eb1adbc77c35f6303a2bf60525

See more details on using hashes here.

File details

Details for the file canatax-0.2-py3-none-any.whl.

File metadata

  • Download URL: canatax-0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for canatax-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a04e5a6528d0aab5233ab776b8bb4199bf1d3808291bbc2048cb5c85fa9d3890
MD5 543f27b668bff06b45f2f7b79e7d21a1
BLAKE2b-256 efb19f1cb9f786744e5ab4b1de3a231b8d505af0e45f548d223d399659a9e231

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page