tax-engine 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tax_engine-0.1.0/LICENSE +202 -0
- tax_engine-0.1.0/PKG-INFO +144 -0
- tax_engine-0.1.0/README.md +115 -0
- tax_engine-0.1.0/pyproject.toml +114 -0
- tax_engine-0.1.0/setup.cfg +4 -0
- tax_engine-0.1.0/src/tax_engine/__init__.py +6 -0
- tax_engine-0.1.0/src/tax_engine/adapters/__init__.py +1 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/__init__.py +1 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/__init__.py +45 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/arithmetic.py +619 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/blank.py +73 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/choices.py +125 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/figures.py +47 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/forms.py +45 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/line_renderer.py +26 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/names.py +169 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/rate_tables.py +178 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/record_lists.py +149 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/registry.py +96 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/renderer.py +51 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/trace_english/unit_text.py +123 -0
- tax_engine-0.1.0/src/tax_engine/adapters/inbound/unit_text.py +64 -0
- tax_engine-0.1.0/src/tax_engine/adapters/outbound/__init__.py +1 -0
- tax_engine-0.1.0/src/tax_engine/adapters/outbound/capability_modules.py +38 -0
- tax_engine-0.1.0/src/tax_engine/adapters/outbound/jurisdiction_packages.py +188 -0
- tax_engine-0.1.0/src/tax_engine/adapters/outbound/parameter_parser.py +126 -0
- tax_engine-0.1.0/src/tax_engine/adapters/outbound/parser_modules.py +33 -0
- tax_engine-0.1.0/src/tax_engine/adapters/outbound/yaml_jurisdictions.py +967 -0
- tax_engine-0.1.0/src/tax_engine/adapters/outbound/yaml_parameters.py +137 -0
- tax_engine-0.1.0/src/tax_engine/adapters/outbound/yaml_support.py +265 -0
- tax_engine-0.1.0/src/tax_engine/adapters/text.py +73 -0
- tax_engine-0.1.0/src/tax_engine/application/__init__.py +1 -0
- tax_engine-0.1.0/src/tax_engine/application/ports/__init__.py +1 -0
- tax_engine-0.1.0/src/tax_engine/application/ports/jurisdiction_source.py +17 -0
- tax_engine-0.1.0/src/tax_engine/application/ports/parameter_source.py +22 -0
- tax_engine-0.1.0/src/tax_engine/application/services/__init__.py +1 -0
- tax_engine-0.1.0/src/tax_engine/application/services/tax_computation.py +100 -0
- tax_engine-0.1.0/src/tax_engine/domain/__init__.py +1 -0
- tax_engine-0.1.0/src/tax_engine/domain/artifact.py +261 -0
- tax_engine-0.1.0/src/tax_engine/domain/blank.py +54 -0
- tax_engine-0.1.0/src/tax_engine/domain/capability.py +626 -0
- tax_engine-0.1.0/src/tax_engine/domain/capability_builder.py +244 -0
- tax_engine-0.1.0/src/tax_engine/domain/composition.py +256 -0
- tax_engine-0.1.0/src/tax_engine/domain/errors.py +219 -0
- tax_engine-0.1.0/src/tax_engine/domain/figure_names.py +54 -0
- tax_engine-0.1.0/src/tax_engine/domain/form.py +616 -0
- tax_engine-0.1.0/src/tax_engine/domain/jurisdiction.py +40 -0
- tax_engine-0.1.0/src/tax_engine/domain/jurisdiction_code.py +37 -0
- tax_engine-0.1.0/src/tax_engine/domain/kinds.py +247 -0
- tax_engine-0.1.0/src/tax_engine/domain/manifest.py +475 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/__init__.py +5 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/amount.py +31 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/amount_by_band.py +122 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/brackets.py +189 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/class_rates.py +180 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/conditions.py +195 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/credit.py +31 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/datasets.py +41 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/factor.py +33 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/fraction.py +38 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/kind.py +34 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/rate.py +31 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/rate_table.py +111 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/rounding.py +148 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/rounding_only.py +19 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/surcharge_tiers.py +91 -0
- tax_engine-0.1.0/src/tax_engine/domain/parameters/threshold_rate.py +45 -0
- tax_engine-0.1.0/src/tax_engine/domain/record_list.py +156 -0
- tax_engine-0.1.0/src/tax_engine/domain/registry.py +138 -0
- tax_engine-0.1.0/src/tax_engine/domain/trace/__init__.py +37 -0
- tax_engine-0.1.0/src/tax_engine/domain/trace/arithmetic.py +918 -0
- tax_engine-0.1.0/src/tax_engine/domain/trace/base.py +31 -0
- tax_engine-0.1.0/src/tax_engine/domain/trace/blank.py +106 -0
- tax_engine-0.1.0/src/tax_engine/domain/trace/choices.py +142 -0
- tax_engine-0.1.0/src/tax_engine/domain/trace/forms.py +36 -0
- tax_engine-0.1.0/src/tax_engine/domain/trace/rate_tables.py +224 -0
- tax_engine-0.1.0/src/tax_engine/domain/trace/record_lists.py +174 -0
- tax_engine-0.1.0/src/tax_engine/domain/unit.py +101 -0
- tax_engine-0.1.0/src/tax_engine/domain/worksheet.py +202 -0
- tax_engine-0.1.0/src/tax_engine/factory.py +27 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/__init__.py +5 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/__init__.py +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/capabilities/__init__.py +7 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/capabilities/amount_by_count.py +60 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/capabilities/amount_or_divided_by_rate.py +76 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/capabilities/contribution_tier.py +79 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/capabilities/count_by_conditions.py +147 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/capabilities/given_or_contribution_tier.py +68 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/capabilities/tapered_amount.py +58 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/capabilities/yes_or_no_count.py +47 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/__init__.py +42 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/alternative_minimum_tax.py +1152 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/base.py +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/canada_workers_benefit.py +139 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/capital_gains_deduction_charts.py +1429 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/credits_against_federal_tax.py +445 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/deductions.py +172 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/income.py +73 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/investment_tax_credit.py +296 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/net_tax.py +280 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/non_refundable_credits.py +1176 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/other_inputs.py +203 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/personal_amounts.py +1429 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/rc381_cpp_qpp.py +910 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/refund.py +547 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/refundable_credits.py +311 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/resp_aips.py +106 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/rrsp_fhsa.py +459 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/t1032_pension_income_splitting.py +620 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/t1043.py +139 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/t1139.py +748 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/t1206_share_dispositions.py +177 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/t1212.py +39 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/t2017_reserve.py +581 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/t2205.py +206 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/t746.py +138 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/t777.py +1374 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/t90.py +130 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/t936.py +260 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/catalog/taxable_income.py +50 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_1.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_10.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_11_inputs.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_12.yaml +22 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_13.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_14_inputs.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_15.yaml +26 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_17.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_18.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_20.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_21.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_22.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_24.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_25.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_27.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_28.yaml +22 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_5.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_6.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_6/schedule_6_line_7.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_inputs.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_1.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_11.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_12.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_2.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_22.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_25.yaml +24 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_28.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_4.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_5.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_7.yaml +27 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_b.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_d.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/schedule_8/schedule_8_line_e.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits.yaml +30 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_101.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_106.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_125.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_128.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_130.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_132.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_167.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_30000.yaml +30 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_31260.yaml +27 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_33500.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_33800.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_35000.yaml +22 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_40400.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_40500_inputs.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_40600.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_40600_inputs.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_41600.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_41700.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_42000.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_42900.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_43500.yaml +37 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_48200.yaml +54 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_76.yaml +80 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_84.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_96.yaml +39 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_tax_and_credits/t1_tax_and_credits_line_98.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_taxable_income/t1_taxable_income.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_taxable_income/t1_taxable_income_inputs.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_taxable_income/t1_taxable_income_line_10400_inputs.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_taxable_income/t1_taxable_income_line_15000.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_taxable_income/t1_taxable_income_line_23300.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_taxable_income/t1_taxable_income_line_23400.yaml +22 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_taxable_income/t1_taxable_income_line_23600.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_taxable_income/t1_taxable_income_line_23600_signed.yaml +24 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_taxable_income/t1_taxable_income_line_25700_inputs.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t1_taxable_income/t1_taxable_income_line_26000.yaml +23 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204_inputs.yaml +34 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204_line_1.yaml +46 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204_line_10.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204_line_13.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204_line_14.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204_line_15.yaml +46 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204_line_16.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204_line_3.yaml +32 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204_line_4.yaml +25 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204_line_6.yaml +23 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204_line_7.yaml +24 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/forms/t2204/t2204_line_8.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameter_parsers/__init__.py +2 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameter_parsers/amount_by_count.py +28 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameter_parsers/claim_reduction.py +30 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameter_parsers/contribution_tier.py +28 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameter_parsers/taper.py +24 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameter_parsers/year_amounts.py +40 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameter_shapes/__init__.py +1 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameter_shapes/amount_by_count.py +61 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameter_shapes/claim_reduction.py +45 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameter_shapes/contribution_tier.py +58 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameter_shapes/taper.py +48 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameter_shapes/year_amounts.py +90 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/age_income_threshold/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/age_maximum/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/age_rate/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/amt_applicable_rate/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/amt_basic_exemption/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/amt_federal_surtax_rate/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/amt_federal_tax_rate/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/amt_non_refundable_credits_rate/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/amt_t2203_column_5_percentage_maximum/2025.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/basic_personal_amount/2025.yaml +37 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/basic_personal_amount/2026.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/brackets/2025.yaml +33 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/brackets/2026.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/canada_employment_amount/2025.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/canada_employment_amount/2026.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cent_rounding/2025.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cent_rounding/2026.yaml +22 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2016_part_1_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2016_part_2_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2017_part_1_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2017_part_2_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2018_part_1_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2018_part_2_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2019_part_1_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2019_part_2_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2020_part_1_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2020_part_2_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2021_part_1_amount_a/2025.yaml +9 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2021_part_2_amount_a/2025.yaml +9 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2022_part_1_amount_a/2025.yaml +9 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2022_part_2_amount_a/2025.yaml +9 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2023_part_1_amount_a/2025.yaml +9 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2023_part_2_amount_a/2025.yaml +9 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2024_period_1_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2024_period_2_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2025_part_1_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2025_part_2_amount_a/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/chart_2_numerator_one/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/child_care_earned_income_fraction/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_additional_maximum_pensionable_earnings/2025.yaml +31 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_additional_maximum_pensionable_earnings/2026.yaml +30 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_basic_exemption/2025.yaml +30 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_basic_exemption/2026.yaml +29 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_line_11_base_contribution/2025.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_line_11_base_contribution/2026.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_line_12_first_additional_contribution/2025.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_line_12_first_additional_contribution/2026.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_line_22_second_additional_contribution/2025.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_line_22_second_additional_contribution/2026.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_line_7_maximum/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_line_7_maximum/2026.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_maximum_pensionable_earnings/2025.yaml +30 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_maximum_pensionable_earnings/2026.yaml +29 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_pensionable_earnings_per_slip_maximum/2025.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_pensionable_earnings_per_slip_maximum/2026.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_second_additional_earnings_maximum/2025.yaml +31 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cpp_second_additional_earnings_maximum/2026.yaml +31 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/credit_rate/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/credit_rate/2026.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cwb_base_amount/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cwb_base_amount/2026.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cwb_maximum/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cwb_maximum/2026.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cwb_rate/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cwb_rate/2026.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cwb_reduction_rate/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cwb_reduction_rate/2026.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cwb_reduction_threshold/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/cwb_reduction_threshold/2026.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/disability_self_base_amount/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/disability_self_care_threshold/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/disability_self_supplement_maximum/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/donation_first_tier_maximum/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/donation_high_income_threshold/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/donation_high_income_threshold/2026.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/donation_net_income_rate/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/donation_net_income_rate/2026.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/ei_maximum_insurable_earnings/2025.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/ei_maximum_insurable_earnings/2026.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/ei_premium/2025.yaml +24 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/ei_premium/2026.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/fhsa_annual_amount/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/fhsa_lifetime_limit/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/foreign_property_income_credit_limit_rate/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/home_buyers_maximum/2025.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/logging_income_rate/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/medical_net_income_rate/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/medical_threshold_ceiling/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/net_capital_loss_numerator_one_2000/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/northern_residency_rate/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/oas_benefits_base_amount/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/other_payments_line_9_over_limit_conditions/2025.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/political_credit_column_2_line_2/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/political_credit_column_2_line_6/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/political_credit_column_3_line_2/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/political_credit_column_3_line_6/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/political_credit_shortcut_amount/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/political_credit_shortcut_threshold/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/resp_aips_lifetime_limit/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/schedule_8_zero/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/schedule_8_zero/2026.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/social_benefits_repayment_rate/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/spouse_caregiver_base/2025.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/spouse_caregiver_maximum/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/spouse_designated_tuition_maximum/2025.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/spouse_return_age_amount_maximum/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/spouse_return_basic_personal_amount_maximum/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/spouse_return_disability_amount_maximum/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/spouse_return_pension_income_amount_maximum/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/t2204_exemption/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/t2204_exemption/2026.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/t2204_line_15_conditions/2025.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/t2204_line_15_conditions/2026.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/t2204_line_1_conditions/2025.yaml +25 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/t2204_line_1_conditions/2026.yaml +27 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/t2204_maximum_insurable_earnings/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/t2204_maximum_insurable_earnings/2026.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/top_up_threshold/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/parameters/tuition_income_limit/2025.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/trace/__init__.py +27 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/trace/amount_by_count.py +36 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/trace/contribution_tier.py +41 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/trace/given_amount.py +30 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/trace/tapered_amount.py +42 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/trace_english/__init__.py +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/trace_english/amount_by_count.py +25 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/trace_english/contribution_tier.py +30 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/trace_english/given_amount.py +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/trace_english/tapered_amount.py +37 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/trace_english/units.py +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca/units.py +8 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/__init__.py +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/capabilities/__init__.py +7 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/capabilities/tax_on_taxable_income.py +78 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/catalog.py +391 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits_line_1.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits_line_27.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits_line_32.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits_line_33.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits_line_36.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits_line_39.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits_line_41.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits_line_43.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits_line_5.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits_line_52.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits_line_54.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_credits_line_58.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_10.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_11.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_12.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_13.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_14.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_15.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_16.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_25.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_29.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_3.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_34_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_4.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_41_input.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_51_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_57_inputs.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_59.yaml +22 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_6.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_60_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_61.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_62.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_63_inputs.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_64.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_64_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_65.yaml +23 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_66.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_67.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_67_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_68.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_69_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_7.yaml +22 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_70.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_72_input.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_73.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_74.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_75.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/ab428_line_8.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/manifest.yaml +39 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/return.yaml +157 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/salary.yaml +8 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/worksheet_ab428.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/worksheet_ab428_line_1.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/worksheet_ab428_line_2.yaml +15 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/worksheet_ab428_line_3.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/worksheet_ab428_line_5.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/worksheet_ab428_line_6.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/worksheet_ab428_line_7.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/manifests/2025/worksheet_ab428_line_9.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/basic_personal_amount/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/basic_personal_amount/2026.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/brackets_lines_2_to_8/2025.yaml +24 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/brackets_lines_2_to_8/2026.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/brackets_lines_9_to_15/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/brackets_lines_9_to_15/2026.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/cent_rounding/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/cent_rounding/2026.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/credit_rate/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/credit_rate/2026.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/cwb_base_amount/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/cwb_base_amount/2026.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/cwb_maximum/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/cwb_maximum/2026.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/cwb_rate/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/cwb_rate/2026.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/cwb_reduction_threshold/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/cwb_reduction_threshold/2026.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/exact_rounding/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/exact_rounding/2026.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/marginal_rate_gate/2025.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/marginal_rate_gate/2026.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/minimum_tax_rate/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/minimum_tax_rate/2026.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/rate_rounding/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/rate_rounding/2026.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/supplemental_credit_base/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/supplemental_credit_base/2026.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/supplemental_credit_rate/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/parameters/supplemental_credit_rate/2026.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/trace/__init__.py +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/trace/tax_on_taxable_income.py +31 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/trace_english/__init__.py +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_ab/trace_english/tax_on_taxable_income.py +24 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/__init__.py +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/capabilities/__init__.py +7 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/capabilities/surtax_factor.py +61 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/catalog.py +484 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/manifest.yaml +27 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428.yaml +25 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_a.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_a_line_13.yaml +35 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_a_line_16.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_a_line_17.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_a_line_19.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_a_line_20.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_a_line_3.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_a_line_5.yaml +29 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_18.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_19.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_21.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_24.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_25.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_27_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_28.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_3.yaml +30 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_31.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_35.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_4.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_43_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_44.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_46.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_49_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_5.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_50.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_53.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_54_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_55.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_57_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_6.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_60_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_61.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_65.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_66.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_67.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_68.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_69.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_7.yaml +24 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_71.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_72_inputs.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_73.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_74.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_77.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_78.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_8.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_80.yaml +55 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_81.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_82_inputs.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_83.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_85.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_86.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_87.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_87_inputs.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_88.yaml +17 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_89.yaml +27 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_9.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/on428_line_90.yaml +24 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/return.yaml +222 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/manifests/2025/salary.yaml +8 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/basic_personal_amount/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/basic_personal_amount/2026.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/brackets/2025.yaml +30 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/brackets/2026.yaml +20 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/cent_rounding/2025.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/cent_rounding/2026.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/credit_rate/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/credit_rate/2026.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/exact_rounding/2025.yaml +10 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/exact_rounding/2026.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/farmers_food_donation_rate/2025.yaml +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/farmers_food_donation_rate/2026.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/health_premium_rows/2025.yaml +27 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/health_premium_rows/2026.yaml +24 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/lift_individual_income_threshold/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/lift_individual_income_threshold/2026.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/lift_maximum/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/lift_maximum/2026.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/lift_rate/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/lift_rate/2026.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/lift_single_rate/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/lift_single_rate/2026.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/marginal_rate_gate/2025.yaml +16 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/marginal_rate_gate/2026.yaml +18 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/on428_line_80_conditions/2025.yaml +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/on428_line_80_conditions/2026.yaml +21 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/rate_rounding/2025.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/rate_rounding/2026.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/surtax_line_66/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/surtax_line_66/2026.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/surtax_line_67/2025.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/surtax_line_67/2026.yaml +12 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/tax_reduction_basic/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/tax_reduction_basic/2026.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/tax_reduction_multiplier/2025.yaml +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/parameters/tax_reduction_multiplier/2026.yaml +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/trace/__init__.py +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/trace/surtax_factor.py +37 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/trace_english/__init__.py +11 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/ca_on/trace_english/surtax_factor.py +43 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/__init__.py +14 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/__init__.py +7 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/amount_by_band.py +54 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/amount_by_band_rate.py +49 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/apply_fraction.py +48 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/apply_rate.py +42 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/apply_ratio.py +91 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/at_most.py +51 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/bracket_column_figure.py +101 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/capped_amount.py +45 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/choose_by_count.py +69 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/credit_amount.py +40 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/divide.py +67 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/first_record_count.py +65 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/greater_of.py +47 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/lesser_of.py +48 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/multiple_over.py +62 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/multiply_by_rate.py +68 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/per_unit_amount.py +50 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/progressive_tax.py +49 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/record_positive_total.py +60 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/record_total.py +61 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/subtract.py +64 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/subtract_not_below_zero.py +66 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/sum.py +54 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/sum_not_below_zero.py +56 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/tiered_surcharge.py +56 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/capabilities/times_count.py +65 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/catalog.py +6 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/__init__.py +5 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/amount.py +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/amount_by_band.py +50 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/brackets.py +52 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/class_rates.py +106 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/conditions.py +79 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/credit.py +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/factor.py +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/fraction.py +23 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/rate.py +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/rate_table.py +40 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/rounding_only.py +19 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/surcharge_tiers.py +42 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/parameter_parsers/threshold_rate.py +23 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/trace_english/__init__.py +7 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/trace_english/units.py +13 -0
- tax_engine-0.1.0/src/tax_engine/jurisdictions/core/units.py +10 -0
- tax_engine-0.1.0/src/tax_engine/registrations.py +67 -0
- tax_engine-0.1.0/src/tax_engine.egg-info/PKG-INFO +144 -0
- tax_engine-0.1.0/src/tax_engine.egg-info/SOURCES.txt +603 -0
- tax_engine-0.1.0/src/tax_engine.egg-info/dependency_links.txt +1 -0
- tax_engine-0.1.0/src/tax_engine.egg-info/requires.txt +9 -0
- tax_engine-0.1.0/src/tax_engine.egg-info/top_level.txt +1 -0
- tax_engine-0.1.0/tests/test_factory.py +91 -0
tax_engine-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tax-engine
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Open-source personal income tax calculation engine in Python. Every number is a tax-form line, and every result explains itself in a readable trace.
|
|
5
|
+
Author-email: Umar Khan <The-Pied-Piper@users.noreply.github.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Documentation, https://github.com/The-Pied-Piper/tax-engine#readme
|
|
8
|
+
Project-URL: Repository, https://github.com/The-Pied-Piper/tax-engine
|
|
9
|
+
Project-URL: Issues, https://github.com/The-Pied-Piper/tax-engine/issues
|
|
10
|
+
Keywords: tax,income-tax,tax-calculation,canada,ontario,decimal,explainable
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Natural Language :: English
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Topic :: Office/Business :: Financial
|
|
17
|
+
Requires-Python: >=3.12
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
Requires-Dist: PyYAML>=6.0
|
|
21
|
+
Provides-Extra: dev
|
|
22
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
23
|
+
Requires-Dist: import-linter>=2.0; extra == "dev"
|
|
24
|
+
Requires-Dist: mypy>=1.11; extra == "dev"
|
|
25
|
+
Requires-Dist: pytest>=8.3; extra == "dev"
|
|
26
|
+
Requires-Dist: ruff>=0.6; extra == "dev"
|
|
27
|
+
Requires-Dist: types-PyYAML; extra == "dev"
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
|
|
30
|
+
# tax-engine: an open-source income tax calculation engine in Python
|
|
31
|
+
|
|
32
|
+
[](https://github.com/The-Pied-Piper/tax-engine/actions/workflows/ci.yml)
|
|
33
|
+
[](LICENSE)
|
|
34
|
+
[](https://www.python.org/downloads/)
|
|
35
|
+
|
|
36
|
+
**tax-engine is a personal income tax calculation library where every number is a line on a real tax form, and every result explains itself in a readable trace.**
|
|
37
|
+
|
|
38
|
+
Tax rules live as data taken as printed from the tax authority's own forms. Each form line is one small, tested step. You can follow any figure back to the form line it came from.
|
|
39
|
+
|
|
40
|
+
Supported today: Canada (federal), Ontario and Alberta, tax years 2025 and 2026 (2026 is provisional). More forms, lines, years and jurisdictions are added over time (see [Coverage](#coverage)).
|
|
41
|
+
|
|
42
|
+
## Example: a $70,000 salary (tax year 2025)
|
|
43
|
+
|
|
44
|
+
Given only a gross salary, the engine works out the contributions and tax from the CRA forms. Take-home is then salary minus CPP, EI and total tax, a subtraction done by the caller outside the engine:
|
|
45
|
+
|
|
46
|
+
| Item | Amount |
|
|
47
|
+
| --- | ---: |
|
|
48
|
+
| Federal tax | 7,585.64 |
|
|
49
|
+
| Ontario tax (ON428, incl. health premium) | 3,911.45 |
|
|
50
|
+
| **Total tax** | **11,497.09** |
|
|
51
|
+
| CPP contributions (base 3,291.75 + enhanced 665.00) | 3,956.75 |
|
|
52
|
+
| EI premiums | 1,077.48 |
|
|
53
|
+
| **Take-home** | **53,468.68** |
|
|
54
|
+
|
|
55
|
+
Every figure the engine computes comes with a trace saying how it was reached. Each trace line is about one figure (`line.label`), and its sentence names the figures it uses as the form prints them, so a caller shows the figure beside the sentence. This is the trace for the last Ontario line (ON428 line 90, "Ontario tax"):
|
|
56
|
+
|
|
57
|
+
```text
|
|
58
|
+
line 90: Line 88 (3311.45) plus line 89 (600.00) gives 3911.45 (rounded to the nearest cent).
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Why tax-engine
|
|
62
|
+
|
|
63
|
+
- **Explains itself.** A trace for every line: inputs, operation, result, rounding. A renderer turns it into text in any language; English is built today.
|
|
64
|
+
- **Mirrors the forms.** One form line is one capability, so engine steps read like the form itself.
|
|
65
|
+
- **Rules are data.** Rates, thresholds and limits are datasets copied as printed, never recomputed in code.
|
|
66
|
+
- **Follows the published forms.** The engine follows the CRA's published forms and formulas, including the T4127 payroll guide, line by line. It is an independent estimation tool and has not been reviewed or approved by the CRA.
|
|
67
|
+
- **Exact arithmetic.** `Decimal` everywhere, rounding only where the form says to round.
|
|
68
|
+
- **Jurisdiction-agnostic core.** Jurisdictions are plugins that add forms, datasets and capabilities; adding one does not change the core.
|
|
69
|
+
|
|
70
|
+
## Quick start
|
|
71
|
+
|
|
72
|
+
Requires Python 3.12 or newer. Install from a checkout:
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
git clone https://github.com/The-Pied-Piper/tax-engine.git
|
|
76
|
+
cd tax-engine
|
|
77
|
+
pip install -e .
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Run the example, which prints the English trace for every form (the argument is the gross salary):
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
python examples/quickstart.py 70000
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
`examples/quickstart.py`:
|
|
87
|
+
|
|
88
|
+
```python
|
|
89
|
+
import sys
|
|
90
|
+
from decimal import Decimal
|
|
91
|
+
|
|
92
|
+
from tax_engine import build_tax_computation
|
|
93
|
+
from tax_engine.adapters.inbound.trace_english import EnglishNames, EnglishTraceRenderer
|
|
94
|
+
from tax_engine.domain.artifact import Artifact
|
|
95
|
+
from tax_engine.domain.jurisdiction_code import JurisdictionCode
|
|
96
|
+
from tax_engine.jurisdictions.ca.catalog.income import EMPLOYMENT_INCOME
|
|
97
|
+
|
|
98
|
+
engine = build_tax_computation()
|
|
99
|
+
sheets = engine.compute(
|
|
100
|
+
JurisdictionCode("CA-ON"), 2025, Artifact(EMPLOYMENT_INCOME, Decimal(sys.argv[1]))
|
|
101
|
+
)
|
|
102
|
+
for form, form_sheets in sheets.items():
|
|
103
|
+
for sheet in form_sheets:
|
|
104
|
+
print(f"\n== {form} ==")
|
|
105
|
+
renderer = EnglishTraceRenderer()
|
|
106
|
+
names = EnglishNames(sheet)
|
|
107
|
+
for line in sheet.trace:
|
|
108
|
+
# The sentence names the figures it uses as the form prints them when it is given
|
|
109
|
+
# the worksheet; the figure the line is about is named beside it.
|
|
110
|
+
sentence = renderer.render(line, sheet)
|
|
111
|
+
print(sentence if line.label is None else f"{names.of_label(line.label)}: {sentence}")
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
The example uses Ontario (`CA-ON`) and tax year 2025. Change `CA-ON` to `CA-AB` for Alberta, and `2025` to `2026` for the provisional 2026 year.
|
|
115
|
+
|
|
116
|
+
## How it works
|
|
117
|
+
|
|
118
|
+
A jurisdiction's manifest lists the forms that make up a return. Each form is built line by line from small capabilities (sum, bracket tax, credit, cap, and so on) fed by parameter datasets for the tax year. The engine wires the forms together, runs them, and records a trace for every step.
|
|
119
|
+
|
|
120
|
+
## Coverage
|
|
121
|
+
|
|
122
|
+
| Jurisdiction | Year | Forms and lines built |
|
|
123
|
+
| --- | --- | --- |
|
|
124
|
+
| Canada (federal) | 2025, 2026 (provisional) | T1 General tax lines, Schedule 8 (CPP), T2204 (EI), Schedule 6 (Canada workers benefit), taxable income |
|
|
125
|
+
| Ontario | 2025, 2026 (provisional) | ON428 (Ontario tax), ON428-A (LIFT credit) |
|
|
126
|
+
| Alberta | 2025, 2026 (provisional) | AB428 (Alberta tax), Worksheet AB428 (Alberta supplemental tax credit) |
|
|
127
|
+
|
|
128
|
+
Roadmap: more forms and lines, and other provinces and territories. Forms are added one at a time, each built line by line from the CRA's own text.
|
|
129
|
+
|
|
130
|
+
## Disclaimer and limits
|
|
131
|
+
|
|
132
|
+
tax-engine is not tax advice and is not an official CRA product. It comes with no warranty, as the Apache-2.0 license says.
|
|
133
|
+
|
|
134
|
+
It covers tax years 2025 and 2026 (2026 is provisional), Canada (federal), Ontario and Alberta only, and only the forms and lines listed under Coverage. A return with items the engine does not model will not come out right. The take-home example assumes a single filer with salary as the only income.
|
|
135
|
+
|
|
136
|
+
Check any result against the CRA's own forms or with a professional before relying on it.
|
|
137
|
+
|
|
138
|
+
## Contributing
|
|
139
|
+
|
|
140
|
+
Issues and pull requests are welcome. Developer setup and checks are in [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
141
|
+
|
|
142
|
+
## License
|
|
143
|
+
|
|
144
|
+
Licensed under the [Apache License, Version 2.0](LICENSE).
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# tax-engine: an open-source income tax calculation engine in Python
|
|
2
|
+
|
|
3
|
+
[](https://github.com/The-Pied-Piper/tax-engine/actions/workflows/ci.yml)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://www.python.org/downloads/)
|
|
6
|
+
|
|
7
|
+
**tax-engine is a personal income tax calculation library where every number is a line on a real tax form, and every result explains itself in a readable trace.**
|
|
8
|
+
|
|
9
|
+
Tax rules live as data taken as printed from the tax authority's own forms. Each form line is one small, tested step. You can follow any figure back to the form line it came from.
|
|
10
|
+
|
|
11
|
+
Supported today: Canada (federal), Ontario and Alberta, tax years 2025 and 2026 (2026 is provisional). More forms, lines, years and jurisdictions are added over time (see [Coverage](#coverage)).
|
|
12
|
+
|
|
13
|
+
## Example: a $70,000 salary (tax year 2025)
|
|
14
|
+
|
|
15
|
+
Given only a gross salary, the engine works out the contributions and tax from the CRA forms. Take-home is then salary minus CPP, EI and total tax, a subtraction done by the caller outside the engine:
|
|
16
|
+
|
|
17
|
+
| Item | Amount |
|
|
18
|
+
| --- | ---: |
|
|
19
|
+
| Federal tax | 7,585.64 |
|
|
20
|
+
| Ontario tax (ON428, incl. health premium) | 3,911.45 |
|
|
21
|
+
| **Total tax** | **11,497.09** |
|
|
22
|
+
| CPP contributions (base 3,291.75 + enhanced 665.00) | 3,956.75 |
|
|
23
|
+
| EI premiums | 1,077.48 |
|
|
24
|
+
| **Take-home** | **53,468.68** |
|
|
25
|
+
|
|
26
|
+
Every figure the engine computes comes with a trace saying how it was reached. Each trace line is about one figure (`line.label`), and its sentence names the figures it uses as the form prints them, so a caller shows the figure beside the sentence. This is the trace for the last Ontario line (ON428 line 90, "Ontario tax"):
|
|
27
|
+
|
|
28
|
+
```text
|
|
29
|
+
line 90: Line 88 (3311.45) plus line 89 (600.00) gives 3911.45 (rounded to the nearest cent).
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Why tax-engine
|
|
33
|
+
|
|
34
|
+
- **Explains itself.** A trace for every line: inputs, operation, result, rounding. A renderer turns it into text in any language; English is built today.
|
|
35
|
+
- **Mirrors the forms.** One form line is one capability, so engine steps read like the form itself.
|
|
36
|
+
- **Rules are data.** Rates, thresholds and limits are datasets copied as printed, never recomputed in code.
|
|
37
|
+
- **Follows the published forms.** The engine follows the CRA's published forms and formulas, including the T4127 payroll guide, line by line. It is an independent estimation tool and has not been reviewed or approved by the CRA.
|
|
38
|
+
- **Exact arithmetic.** `Decimal` everywhere, rounding only where the form says to round.
|
|
39
|
+
- **Jurisdiction-agnostic core.** Jurisdictions are plugins that add forms, datasets and capabilities; adding one does not change the core.
|
|
40
|
+
|
|
41
|
+
## Quick start
|
|
42
|
+
|
|
43
|
+
Requires Python 3.12 or newer. Install from a checkout:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
git clone https://github.com/The-Pied-Piper/tax-engine.git
|
|
47
|
+
cd tax-engine
|
|
48
|
+
pip install -e .
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Run the example, which prints the English trace for every form (the argument is the gross salary):
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
python examples/quickstart.py 70000
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
`examples/quickstart.py`:
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
import sys
|
|
61
|
+
from decimal import Decimal
|
|
62
|
+
|
|
63
|
+
from tax_engine import build_tax_computation
|
|
64
|
+
from tax_engine.adapters.inbound.trace_english import EnglishNames, EnglishTraceRenderer
|
|
65
|
+
from tax_engine.domain.artifact import Artifact
|
|
66
|
+
from tax_engine.domain.jurisdiction_code import JurisdictionCode
|
|
67
|
+
from tax_engine.jurisdictions.ca.catalog.income import EMPLOYMENT_INCOME
|
|
68
|
+
|
|
69
|
+
engine = build_tax_computation()
|
|
70
|
+
sheets = engine.compute(
|
|
71
|
+
JurisdictionCode("CA-ON"), 2025, Artifact(EMPLOYMENT_INCOME, Decimal(sys.argv[1]))
|
|
72
|
+
)
|
|
73
|
+
for form, form_sheets in sheets.items():
|
|
74
|
+
for sheet in form_sheets:
|
|
75
|
+
print(f"\n== {form} ==")
|
|
76
|
+
renderer = EnglishTraceRenderer()
|
|
77
|
+
names = EnglishNames(sheet)
|
|
78
|
+
for line in sheet.trace:
|
|
79
|
+
# The sentence names the figures it uses as the form prints them when it is given
|
|
80
|
+
# the worksheet; the figure the line is about is named beside it.
|
|
81
|
+
sentence = renderer.render(line, sheet)
|
|
82
|
+
print(sentence if line.label is None else f"{names.of_label(line.label)}: {sentence}")
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
The example uses Ontario (`CA-ON`) and tax year 2025. Change `CA-ON` to `CA-AB` for Alberta, and `2025` to `2026` for the provisional 2026 year.
|
|
86
|
+
|
|
87
|
+
## How it works
|
|
88
|
+
|
|
89
|
+
A jurisdiction's manifest lists the forms that make up a return. Each form is built line by line from small capabilities (sum, bracket tax, credit, cap, and so on) fed by parameter datasets for the tax year. The engine wires the forms together, runs them, and records a trace for every step.
|
|
90
|
+
|
|
91
|
+
## Coverage
|
|
92
|
+
|
|
93
|
+
| Jurisdiction | Year | Forms and lines built |
|
|
94
|
+
| --- | --- | --- |
|
|
95
|
+
| Canada (federal) | 2025, 2026 (provisional) | T1 General tax lines, Schedule 8 (CPP), T2204 (EI), Schedule 6 (Canada workers benefit), taxable income |
|
|
96
|
+
| Ontario | 2025, 2026 (provisional) | ON428 (Ontario tax), ON428-A (LIFT credit) |
|
|
97
|
+
| Alberta | 2025, 2026 (provisional) | AB428 (Alberta tax), Worksheet AB428 (Alberta supplemental tax credit) |
|
|
98
|
+
|
|
99
|
+
Roadmap: more forms and lines, and other provinces and territories. Forms are added one at a time, each built line by line from the CRA's own text.
|
|
100
|
+
|
|
101
|
+
## Disclaimer and limits
|
|
102
|
+
|
|
103
|
+
tax-engine is not tax advice and is not an official CRA product. It comes with no warranty, as the Apache-2.0 license says.
|
|
104
|
+
|
|
105
|
+
It covers tax years 2025 and 2026 (2026 is provisional), Canada (federal), Ontario and Alberta only, and only the forms and lines listed under Coverage. A return with items the engine does not model will not come out right. The take-home example assumes a single filer with salary as the only income.
|
|
106
|
+
|
|
107
|
+
Check any result against the CRA's own forms or with a professional before relying on it.
|
|
108
|
+
|
|
109
|
+
## Contributing
|
|
110
|
+
|
|
111
|
+
Issues and pull requests are welcome. Developer setup and checks are in [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
Licensed under the [Apache License, Version 2.0](LICENSE).
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "tax-engine"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Open-source personal income tax calculation engine in Python. Every number is a tax-form line, and every result explains itself in a readable trace."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.12"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [
|
|
14
|
+
{ name = "Umar Khan", email = "The-Pied-Piper@users.noreply.github.com" },
|
|
15
|
+
]
|
|
16
|
+
keywords = [
|
|
17
|
+
"tax",
|
|
18
|
+
"income-tax",
|
|
19
|
+
"tax-calculation",
|
|
20
|
+
"canada",
|
|
21
|
+
"ontario",
|
|
22
|
+
"decimal",
|
|
23
|
+
"explainable",
|
|
24
|
+
]
|
|
25
|
+
classifiers = [
|
|
26
|
+
"Development Status :: 3 - Alpha",
|
|
27
|
+
"Intended Audience :: Developers",
|
|
28
|
+
"Natural Language :: English",
|
|
29
|
+
"Programming Language :: Python :: 3",
|
|
30
|
+
"Programming Language :: Python :: 3.12",
|
|
31
|
+
"Topic :: Office/Business :: Financial",
|
|
32
|
+
]
|
|
33
|
+
dependencies = [
|
|
34
|
+
"PyYAML>=6.0",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[project.optional-dependencies]
|
|
38
|
+
dev = [
|
|
39
|
+
"build>=1.2",
|
|
40
|
+
"import-linter>=2.0",
|
|
41
|
+
"mypy>=1.11",
|
|
42
|
+
"pytest>=8.3",
|
|
43
|
+
"ruff>=0.6",
|
|
44
|
+
"types-PyYAML",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
[project.urls]
|
|
48
|
+
Documentation = "https://github.com/The-Pied-Piper/tax-engine#readme"
|
|
49
|
+
Repository = "https://github.com/The-Pied-Piper/tax-engine"
|
|
50
|
+
Issues = "https://github.com/The-Pied-Piper/tax-engine/issues"
|
|
51
|
+
|
|
52
|
+
[tool.setuptools.packages.find]
|
|
53
|
+
where = ["src"]
|
|
54
|
+
|
|
55
|
+
[tool.setuptools.package-data]
|
|
56
|
+
tax_engine = ["jurisdictions/**/*.yaml"]
|
|
57
|
+
|
|
58
|
+
[tool.pytest.ini_options]
|
|
59
|
+
testpaths = ["tests"]
|
|
60
|
+
|
|
61
|
+
[tool.ruff]
|
|
62
|
+
line-length = 100
|
|
63
|
+
target-version = "py312"
|
|
64
|
+
|
|
65
|
+
[tool.ruff.lint]
|
|
66
|
+
select = ["E", "F", "I", "UP", "B"]
|
|
67
|
+
|
|
68
|
+
[tool.mypy]
|
|
69
|
+
python_version = "3.12"
|
|
70
|
+
strict = true
|
|
71
|
+
|
|
72
|
+
[tool.importlinter]
|
|
73
|
+
root_package = "tax_engine"
|
|
74
|
+
|
|
75
|
+
[[tool.importlinter.contracts]]
|
|
76
|
+
id = "layers"
|
|
77
|
+
name = "Layers point inward"
|
|
78
|
+
type = "layers"
|
|
79
|
+
layers = [
|
|
80
|
+
"tax_engine.factory",
|
|
81
|
+
"tax_engine.registrations",
|
|
82
|
+
"tax_engine.adapters",
|
|
83
|
+
"tax_engine.application",
|
|
84
|
+
"tax_engine.domain",
|
|
85
|
+
]
|
|
86
|
+
|
|
87
|
+
[[tool.importlinter.contracts]]
|
|
88
|
+
id = "jurisdictions"
|
|
89
|
+
name = "Jurisdictions never use the application layer, wiring or outbound adapters"
|
|
90
|
+
type = "forbidden"
|
|
91
|
+
source_modules = ["tax_engine.jurisdictions"]
|
|
92
|
+
forbidden_modules = [
|
|
93
|
+
"tax_engine.application",
|
|
94
|
+
"tax_engine.factory",
|
|
95
|
+
"tax_engine.registrations",
|
|
96
|
+
"tax_engine.adapters.outbound",
|
|
97
|
+
]
|
|
98
|
+
# The one exception: a jurisdiction's parameter parsers extend the parser base class and read
|
|
99
|
+
# their dataset through YamlNode.
|
|
100
|
+
ignore_imports = [
|
|
101
|
+
"tax_engine.jurisdictions.*.parameter_parsers.** -> tax_engine.adapters.outbound.parameter_parser",
|
|
102
|
+
"tax_engine.jurisdictions.*.parameter_parsers.** -> tax_engine.adapters.outbound.yaml_support",
|
|
103
|
+
]
|
|
104
|
+
|
|
105
|
+
[[tool.importlinter.contracts]]
|
|
106
|
+
id = "core"
|
|
107
|
+
name = "Core never imports a jurisdiction"
|
|
108
|
+
type = "forbidden"
|
|
109
|
+
source_modules = [
|
|
110
|
+
"tax_engine.domain",
|
|
111
|
+
"tax_engine.application",
|
|
112
|
+
"tax_engine.adapters",
|
|
113
|
+
]
|
|
114
|
+
forbidden_modules = ["tax_engine.jurisdictions"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Adapters for loading engine data and rendering computation traces."""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Inbound adapters for engine-facing interfaces."""
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""English rendering of the structured trace: one readable sentence per trace line.
|
|
2
|
+
|
|
3
|
+
A new module of core trace lines adds its renderer module here; a jurisdiction renders its own lines
|
|
4
|
+
in its `trace_english` package.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from tax_engine.adapters.inbound.trace_english import (
|
|
10
|
+
arithmetic,
|
|
11
|
+
blank,
|
|
12
|
+
choices,
|
|
13
|
+
figures,
|
|
14
|
+
forms,
|
|
15
|
+
line_renderer,
|
|
16
|
+
names,
|
|
17
|
+
rate_tables,
|
|
18
|
+
record_lists,
|
|
19
|
+
registry,
|
|
20
|
+
renderer,
|
|
21
|
+
unit_text,
|
|
22
|
+
)
|
|
23
|
+
from tax_engine.adapters.inbound.trace_english.line_renderer import LineRenderer
|
|
24
|
+
from tax_engine.adapters.inbound.trace_english.names import EnglishNames, FigureNames, Labelled
|
|
25
|
+
from tax_engine.adapters.inbound.trace_english.renderer import EnglishTraceRenderer
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"EnglishNames",
|
|
29
|
+
"EnglishTraceRenderer",
|
|
30
|
+
"FigureNames",
|
|
31
|
+
"Labelled",
|
|
32
|
+
"LineRenderer",
|
|
33
|
+
"arithmetic",
|
|
34
|
+
"blank",
|
|
35
|
+
"choices",
|
|
36
|
+
"figures",
|
|
37
|
+
"forms",
|
|
38
|
+
"line_renderer",
|
|
39
|
+
"names",
|
|
40
|
+
"rate_tables",
|
|
41
|
+
"record_lists",
|
|
42
|
+
"registry",
|
|
43
|
+
"renderer",
|
|
44
|
+
"unit_text",
|
|
45
|
+
]
|