policyengine-us 1.392.0__py3-none-any.whl → 1.393.0__py3-none-any.whl

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.

Potentially problematic release.


This version of policyengine-us might be problematic. Click here for more details.

@@ -42,25 +42,6 @@
42
42
  output:
43
43
  ny_ctc: 100
44
44
 
45
- - name: Parent of four-year old child with no income gets minimum credit, $100 per child
46
- period: 2022
47
- input:
48
- people:
49
- parent:
50
- age: 30
51
- child:
52
- age: 4
53
- tax_units:
54
- tax_unit:
55
- members: [parent, child]
56
- ctc: 0
57
- households:
58
- household:
59
- members: [parent, child]
60
- state_code: NY
61
- output:
62
- ny_ctc: 100
63
-
64
45
  - name: Simpler calculation if not set to pre-TCJA.
65
46
  period: 2022
66
47
  input:
@@ -323,7 +304,7 @@
323
304
  members: [parent, child]
324
305
  state_code: NY
325
306
  output:
326
- ny_ctc: 100 # Original rule: $100 minimum per child
307
+ ny_ctc: 100
327
308
 
328
309
  - name: 2025 - Updated CTC disabled vs enabled comparison (young child)
329
310
  period: 2025
@@ -344,4 +325,4 @@
344
325
  members: [parent, child]
345
326
  state_code: NY
346
327
  output:
347
- ny_ctc: 100 # Original rule: $100 minimum (not $1,000 from updated rules)
328
+ ny_ctc: 330
@@ -0,0 +1,99 @@
1
+ - name: Case 1, taxsim_record_225838_2024.yaml.
2
+ absolute_error_margin: 0.2
3
+ period: 2024
4
+ input:
5
+ people:
6
+ person1:
7
+ age: 40
8
+ employment_income: 0.0
9
+ taxable_interest_income: 24_248.203
10
+ is_tax_unit_head: true
11
+ person2:
12
+ age: 41
13
+ employment_income: 0.0
14
+ taxable_interest_income: 24_248.203
15
+ is_tax_unit_spouse: true
16
+ person3:
17
+ age: 10
18
+ employment_income: 0
19
+ is_tax_unit_dependent: true
20
+ is_tax_unit_head: false
21
+ is_tax_unit_spouse: false
22
+ tax_units:
23
+ tax_unit:
24
+ members: [person1, person2, person3]
25
+ premium_tax_credit: 0
26
+ local_income_tax: 0
27
+ state_sales_tax: 0
28
+ spm_units:
29
+ spm_unit:
30
+ members: [person1, person2, person3]
31
+ snap: 0
32
+ tanf: 0
33
+ households:
34
+ household:
35
+ members: [person1, person2, person3]
36
+ state_fips: 36
37
+ output:
38
+ ny_ctc: 330
39
+ ny_ctc_pre_2024: 330
40
+ # ny_ctc: 0
41
+
42
+ - name: Case 2, parent of four-year old child with no income gets minimum credit, $100 per child.
43
+ period: 2022
44
+ input:
45
+ people:
46
+ parent:
47
+ age: 30
48
+ child:
49
+ age: 4
50
+ tax_units:
51
+ tax_unit:
52
+ members: [parent, child]
53
+ households:
54
+ household:
55
+ members: [parent, child]
56
+ state_code: NY
57
+ output:
58
+ ny_ctc: 100
59
+ ny_ctc_pre_2024: 100
60
+
61
+ - name: Case 3, parent of four-year old child with some earned income.
62
+ period: 2022
63
+ input:
64
+ people:
65
+ parent:
66
+ age: 30
67
+ employment_income: 25_000
68
+ child:
69
+ age: 4
70
+ tax_units:
71
+ tax_unit:
72
+ members: [parent, child]
73
+ households:
74
+ household:
75
+ members: [parent, child]
76
+ state_code: NY
77
+ output:
78
+ ny_ctc: 330
79
+ ny_ctc_pre_2024: 330
80
+
81
+ - name: Case 4, parent of four-year old child with some earned income.
82
+ period: 2022
83
+ input:
84
+ people:
85
+ parent:
86
+ age: 30
87
+ taxable_interest_income: 50_000
88
+ child:
89
+ age: 4
90
+ tax_units:
91
+ tax_unit:
92
+ members: [parent, child]
93
+ households:
94
+ household:
95
+ members: [parent, child]
96
+ state_code: NY
97
+ output:
98
+ ny_ctc: 330
99
+ ny_ctc_pre_2024: 330
@@ -55,9 +55,21 @@ class ny_ctc_pre_2024(Variable):
55
55
  period,
56
56
  maximum_ctc * meets_ny_minimum_age,
57
57
  )
58
+ # Get maximum federal CTC from pre-TCJA rules
58
59
  max_federal_ctc = pre_tcja_ctc.tax_unit("ctc", period)
59
- ctc_phase_in = pre_tcja_ctc.tax_unit("ctc_phase_in", period)
60
- federal_ctc = min_(max_federal_ctc, ctc_phase_in)
60
+
61
+ # Limit by actual tax liability (for non-refundable portion)
62
+ limiting_tax = pre_tcja_ctc.tax_unit(
63
+ "ctc_limiting_tax_liability", period
64
+ )
65
+ non_refundable_ctc = min_(max_federal_ctc, limiting_tax)
66
+
67
+ # Get refundable portion (requires earned income)
68
+ refundable_ctc = pre_tcja_ctc.tax_unit("refundable_ctc", period)
69
+
70
+ # Total federal CTC they can actually claim
71
+ federal_ctc = non_refundable_ctc + refundable_ctc
72
+
61
73
  qualifies_for_federal_ctc = pre_tcja_ctc.person(
62
74
  "ctc_qualifying_child", period
63
75
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-us
3
- Version: 1.392.0
3
+ Version: 1.393.0
4
4
  Summary: Add your description here.
5
5
  Author-email: PolicyEngine <hello@policyengine.org>
6
6
  License-File: LICENSE
@@ -4714,11 +4714,12 @@ policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_additi
4714
4714
  policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_cdcc.yaml,sha256=nGqCVFv2B3Z_kbiicp7ZvcqQtAHWRgZl8tVI0MgTaO4,232
4715
4715
  policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_college_tuition_credit.yaml,sha256=i_63Mbt-He8gEOABzGRW_wI3xiIMdjCvmA16egzafGc,1062
4716
4716
  policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_college_tuition_credit_eligible.yaml,sha256=uDLlmuyIBgqncloWTaA8-MqiBAEvg-FIB2VIpQFtrc8,492
4717
- policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc.yaml,sha256=jUlc6572_wQkyO9V0CqQ8xRarFzxqYWuB8moI4DM3i4,7712
4717
+ policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc.yaml,sha256=t0srnL3ZIOkPR1hp0aox4MP47RDOeCbEYES8wQK2W1I,7230
4718
4718
  policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc_post_2024.yaml,sha256=diI9wDcCapxkaw9AdMFpMnO8DS001140ql2H0n4KmiI,5480
4719
4719
  policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc_post_2024_base.yaml,sha256=Bwwz0g5pAK-EiCRB3IXvNXpVUs_JR0_-SPPc7fPC_mE,6306
4720
4720
  policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc_post_2024_eligible.yaml,sha256=Zmx0alQOWrTcBw79J0fP1fa72cLtkVznjFtqkG07buI,5896
4721
4721
  policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc_post_2024_phase_out.yaml,sha256=T3vUxrA-2nULoAb9P02dENvjFy2HU3HMWIy8K9PuKc8,10298
4722
+ policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc_pre_2024.yaml,sha256=5QpQ1G8Rxs1n7K5A6f6xulS3mqlGLS2K8h1cautR-EQ,2198
4722
4723
  policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_eitc.yaml,sha256=6mTA2MYFbkmU23CS3Q3yTsPzAX0-MmohN3XaKdXd5YA,593
4723
4724
  policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_geothermal_energy_systems_credit.yaml,sha256=d3x_aHhllH9OBA0T4mXe_BF89DRPpTs6mYmiX-u0lNI,576
4724
4725
  policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_household_credit.yaml,sha256=GAwN2KvBhN4AkD6MXl-cE3DghOWT5vTIcbrVWDo1O4Q,1796
@@ -7384,7 +7385,7 @@ policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_post_2024.
7384
7385
  policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_post_2024_base.py,sha256=firvDXTyXDQvjDzEaMMi8vTiFQ8_L1Tk3o3hLYzMdWM,1037
7385
7386
  policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_post_2024_eligible.py,sha256=8PP4Om-O5C3XUfSjFe5puZ7dORf0jVm0DXwDkt09E04,1223
7386
7387
  policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_post_2024_phase_out.py,sha256=bFxYim4489rCULP1Wjo6hzFCCEo51T5AVI4du4vl2MQ,1533
7387
- policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_pre_2024.py,sha256=9TjwEI3xPm4e8aCHJHY_-4hFQANy5xhbFsSP9-HOung,3466
7388
+ policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_pre_2024.py,sha256=NQBL28lN4O8uOes-no6yiG6omwbI6GC3HSZ7ifAr9-8,3909
7388
7389
  policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_pre_2024_eligible.py,sha256=ZS_8sFxPdFZ_rOHvZTwLv_VQh-N2iSBmABHrdBSYPjg,2269
7389
7390
  policyengine_us/variables/gov/states/ny/tax/income/credits/solar_energy_systems/ny_qualified_solar_energy_systems_equipment_expenditures.py,sha256=PkPQD477kkTqtDyeg7SdevSg7abb04oMBJ5xHFHpspI,407
7390
7391
  policyengine_us/variables/gov/states/ny/tax/income/credits/solar_energy_systems/ny_solar_energy_systems_equipment_credit.py,sha256=L8StSE44y0qJfowTiE2kjkFV1HipBwOdjfv2W7tlKfE,768
@@ -8388,8 +8389,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
8388
8389
  policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
8389
8390
  policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
8390
8391
  policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
8391
- policyengine_us-1.392.0.dist-info/METADATA,sha256=auSFlGhrOm6y10S-6RCd0sVtf_ElswehjMLXNsxAjZc,1649
8392
- policyengine_us-1.392.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8393
- policyengine_us-1.392.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8394
- policyengine_us-1.392.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8395
- policyengine_us-1.392.0.dist-info/RECORD,,
8392
+ policyengine_us-1.393.0.dist-info/METADATA,sha256=eFUdYfJkkDyQm1hVQrg7LwFtjpVaI2cEbuMSLCz42Bg,1649
8393
+ policyengine_us-1.393.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8394
+ policyengine_us-1.393.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8395
+ policyengine_us-1.393.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8396
+ policyengine_us-1.393.0.dist-info/RECORD,,