From d974cf2258c26bf842471c111f0b9d63a92c95f1 Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 1 Aug 2023 23:33:55 +0000 Subject: [PATCH 01/18] Add Nunavut single status credit Fixes #391 --- changelog_entry.yaml | 4 ++++ .../credits/single_status_credit/amount.yaml | 9 +++++++++ .../nu_single_status_credit.yaml | 15 +++++++++++++++ .../single_status_credit/single_status_credit.py | 16 ++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml create mode 100644 policyengine_canada/tests/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.yaml create mode 100644 policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29bb..c256f5736 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: minor + changes: + changed: + - Add Nunavut Single Status Credit. diff --git a/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml b/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml new file mode 100644 index 000000000..ace35fd55 --- /dev/null +++ b/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml @@ -0,0 +1,9 @@ +description: Nunavut provides this amount to person with single status +values: + 2022-01-01: 16_000 +metadata: + unit: currency-CAD + label: Nunavut single status credit amount + reference: + - title: Nunavut Income Tax Act Part I Division B Subvision c 2.16 + href: https://www.nunavutlegislation.ca/en/consolidated-law/income-tax-act-consolidation diff --git a/policyengine_canada/tests/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.yaml b/policyengine_canada/tests/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.yaml new file mode 100644 index 000000000..5d57ff0e2 --- /dev/null +++ b/policyengine_canada/tests/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.yaml @@ -0,0 +1,15 @@ +- name: Person with single status + period: 2023 + input: + province_code: NU + is_married: false + output: + nu_single_status_credit: 16_000 + +- name: Person with married status + period: 2023 + input: + province_code: NU + is_married: true + output: + nu_single_status_credit: 0 diff --git a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py new file mode 100644 index 000000000..59df17031 --- /dev/null +++ b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py @@ -0,0 +1,16 @@ +from policyengine_canada.model_api import * + + +class nu_single_status_credit(Variable): + value_type = float + entity = Person + label = "Nunavut single status credit" + definition_period = YEAR + defined_for = ProvinceCode.NU + + def formula(person, period, parameters): + single_status = ~person.household("is_married", period) + amount = parameters( + period + ).gov.provinces.nu.tax.income.credits.single_status_credit.amount + return amount * single_status From 5f3525a6e2930e7103c2fe4f069e9be22a2a6383 Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 15 Aug 2023 14:16:13 -0400 Subject: [PATCH 02/18] Update amount.yaml --- .../nu/tax/income/credits/single_status_credit/amount.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml b/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml index ace35fd55..872148ae2 100644 --- a/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml +++ b/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml @@ -7,3 +7,5 @@ metadata: reference: - title: Nunavut Income Tax Act Part I Division B Subvision c 2.16 href: https://www.nunavutlegislation.ca/en/consolidated-law/income-tax-act-consolidation + - title: Form NU428, Nunavut Tax + href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5014-c/5014-c-22e.pdf#page=1 From 2206a9b09f383c65b9752a647d2a1971229646fd Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 15 Aug 2023 19:50:49 -0400 Subject: [PATCH 03/18] Update policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml Co-authored-by: Pavel Makarchuk <110687043+PavelMakarchuk@users.noreply.github.com> --- .../nu/tax/income/credits/single_status_credit/amount.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml b/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml index 872148ae2..1721c2809 100644 --- a/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml +++ b/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml @@ -1,4 +1,4 @@ -description: Nunavut provides this amount to person with single status +description: Nunavut credits this amount under the single status credit. values: 2022-01-01: 16_000 metadata: From 3cc84340bc2f0ee00897826cfb72a428538a032c Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 15 Aug 2023 19:51:01 -0400 Subject: [PATCH 04/18] Update changelog_entry.yaml Co-authored-by: Pavel Makarchuk <110687043+PavelMakarchuk@users.noreply.github.com> --- changelog_entry.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog_entry.yaml b/changelog_entry.yaml index c256f5736..dbd9041f4 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -1,4 +1,4 @@ - bump: minor changes: changed: - - Add Nunavut Single Status Credit. + - Nunavut Single Status Credit. From 38bfdf83c6796aefe6430ece340a0cbc1f8614ea Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 15 Aug 2023 19:51:10 -0400 Subject: [PATCH 05/18] Update policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml Co-authored-by: Pavel Makarchuk <110687043+PavelMakarchuk@users.noreply.github.com> --- .../nu/tax/income/credits/single_status_credit/amount.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml b/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml index 1721c2809..d3ec14511 100644 --- a/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml +++ b/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml @@ -7,5 +7,5 @@ metadata: reference: - title: Nunavut Income Tax Act Part I Division B Subvision c 2.16 href: https://www.nunavutlegislation.ca/en/consolidated-law/income-tax-act-consolidation - - title: Form NU428, Nunavut Tax + - title: 2022 Form NU428, Nunavut Tax href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5014-c/5014-c-22e.pdf#page=1 From 2c325f1042c5e558239792d19c2651097458cbd4 Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 15 Aug 2023 20:16:38 -0400 Subject: [PATCH 06/18] Update single_status_credit.py --- .../credits/single_status_credit/single_status_credit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py index 59df17031..1f49ccd90 100644 --- a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py +++ b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py @@ -10,7 +10,9 @@ class nu_single_status_credit(Variable): def formula(person, period, parameters): single_status = ~person.household("is_married", period) + no_dependants = person.household("count_dependents", period) == 0 + eligible = (single_status & no_dependants) amount = parameters( period ).gov.provinces.nu.tax.income.credits.single_status_credit.amount - return amount * single_status + return amount * eligible From 69a5e4fecdf57321d86a5b3c0278f3443ca33179 Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 15 Aug 2023 20:17:46 -0400 Subject: [PATCH 07/18] Update single_status_credit.py --- .../income/credits/single_status_credit/single_status_credit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py index 1f49ccd90..0c368e6a5 100644 --- a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py +++ b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py @@ -10,7 +10,7 @@ class nu_single_status_credit(Variable): def formula(person, period, parameters): single_status = ~person.household("is_married", period) - no_dependants = person.household("count_dependents", period) == 0 + no_dependants = person.household("count_dependants", period) == 0 eligible = (single_status & no_dependants) amount = parameters( period From 8f259555157b719b148fa2ccabd41bb98b475c4b Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Wed, 30 Aug 2023 00:38:24 +0000 Subject: [PATCH 08/18] fixes --- ...tatus_credit.py => nu_single_status_credit.py} | 4 +--- .../nu_single_status_credit_eligible.py | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) rename policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/{single_status_credit.py => nu_single_status_credit.py} (69%) create mode 100644 policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py diff --git a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py similarity index 69% rename from policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py rename to policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py index 0c368e6a5..b3008bba8 100644 --- a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_credit.py +++ b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py @@ -9,9 +9,7 @@ class nu_single_status_credit(Variable): defined_for = ProvinceCode.NU def formula(person, period, parameters): - single_status = ~person.household("is_married", period) - no_dependants = person.household("count_dependants", period) == 0 - eligible = (single_status & no_dependants) + eligible = person("nu_single_status_credit_eligible", period) amount = parameters( period ).gov.provinces.nu.tax.income.credits.single_status_credit.amount diff --git a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py new file mode 100644 index 000000000..234725525 --- /dev/null +++ b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py @@ -0,0 +1,15 @@ +from policyengine_canada.model_api import * + + +class nu_single_status_credit_eligible(Variable): + value_type = float + entity = Person + label = "Nunavut single status credit eligible" + definition_period = YEAR + defined_for = ProvinceCode.NU + + def formula(person, period, parameters): + single_status = ~person.household("is_married", period) + no_dependants = person.household("count_dependants", period) == 0 + eligible = (single_status & no_dependants) + return eligible \ No newline at end of file From d8aca4a3fef305ee093017fe50e665db4fd540ea Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:49:53 -0400 Subject: [PATCH 09/18] Update changelog_entry.yaml Co-authored-by: Pavel Makarchuk <110687043+PavelMakarchuk@users.noreply.github.com> --- changelog_entry.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog_entry.yaml b/changelog_entry.yaml index dbd9041f4..aa3c1d75a 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -1,4 +1,4 @@ - bump: minor changes: changed: - - Nunavut Single Status Credit. + - Nunavut single status credit. From aadf600a1d9a168fbb7c8c4d7294421c2f54e217 Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:50:02 -0400 Subject: [PATCH 10/18] Update policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py Co-authored-by: Pavel Makarchuk <110687043+PavelMakarchuk@users.noreply.github.com> --- .../single_status_credit/nu_single_status_credit_eligible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py index 234725525..399ebd787 100644 --- a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py +++ b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py @@ -11,5 +11,5 @@ class nu_single_status_credit_eligible(Variable): def formula(person, period, parameters): single_status = ~person.household("is_married", period) no_dependants = person.household("count_dependants", period) == 0 - eligible = (single_status & no_dependants) + return (single_status & no_dependants) return eligible \ No newline at end of file From 27129af3601d063eb52f92c6ad7f71b9898006ce Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:50:09 -0400 Subject: [PATCH 11/18] Update policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py Co-authored-by: Pavel Makarchuk <110687043+PavelMakarchuk@users.noreply.github.com> --- .../credits/single_status_credit/nu_single_status_credit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py index b3008bba8..a8bf4b173 100644 --- a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py +++ b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py @@ -6,7 +6,7 @@ class nu_single_status_credit(Variable): entity = Person label = "Nunavut single status credit" definition_period = YEAR - defined_for = ProvinceCode.NU + defined_for = "nu_single_status_credit_eligible" def formula(person, period, parameters): eligible = person("nu_single_status_credit_eligible", period) From 7362ab260c7fd4bd6912c581bd2b871f6e8cf5d2 Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:50:14 -0400 Subject: [PATCH 12/18] Update policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py Co-authored-by: Pavel Makarchuk <110687043+PavelMakarchuk@users.noreply.github.com> --- .../single_status_credit/nu_single_status_credit_eligible.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py index 399ebd787..b6f5a30ef 100644 --- a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py +++ b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py @@ -11,5 +11,4 @@ class nu_single_status_credit_eligible(Variable): def formula(person, period, parameters): single_status = ~person.household("is_married", period) no_dependants = person.household("count_dependants", period) == 0 - return (single_status & no_dependants) - return eligible \ No newline at end of file + return (single_status & no_dependants) \ No newline at end of file From 58143de58423b0cf375d9ae93753882d8bff32e5 Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:50:27 -0400 Subject: [PATCH 13/18] Update policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py Co-authored-by: Pavel Makarchuk <110687043+PavelMakarchuk@users.noreply.github.com> --- .../credits/single_status_credit/nu_single_status_credit.py | 1 - 1 file changed, 1 deletion(-) diff --git a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py index a8bf4b173..fa93e676e 100644 --- a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py +++ b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py @@ -9,7 +9,6 @@ class nu_single_status_credit(Variable): defined_for = "nu_single_status_credit_eligible" def formula(person, period, parameters): - eligible = person("nu_single_status_credit_eligible", period) amount = parameters( period ).gov.provinces.nu.tax.income.credits.single_status_credit.amount From 3d5d916ad792b310057fe4d5aa004e1f9e85bca5 Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:50:38 -0400 Subject: [PATCH 14/18] Update policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py Co-authored-by: Pavel Makarchuk <110687043+PavelMakarchuk@users.noreply.github.com> --- .../credits/single_status_credit/nu_single_status_credit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py index fa93e676e..123d452d1 100644 --- a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py +++ b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.py @@ -9,7 +9,7 @@ class nu_single_status_credit(Variable): defined_for = "nu_single_status_credit_eligible" def formula(person, period, parameters): - amount = parameters( + return parameters( period ).gov.provinces.nu.tax.income.credits.single_status_credit.amount return amount * eligible From aa55388e7ff4bf78ed11e603ceb90f807ac7cda3 Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:55:18 -0400 Subject: [PATCH 15/18] Update amount.yaml --- .../nu/tax/income/credits/single_status_credit/amount.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml b/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml index d3ec14511..0dc9d7e39 100644 --- a/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml +++ b/policyengine_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/amount.yaml @@ -1,6 +1,6 @@ description: Nunavut credits this amount under the single status credit. values: - 2022-01-01: 16_000 + 2022-01-01: 16_862 metadata: unit: currency-CAD label: Nunavut single status credit amount From f4264f0e2304e969210f172673b090ead8edc61c Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:56:23 -0400 Subject: [PATCH 16/18] Update nu_single_status_credit.yaml --- .../credits/single_status_credit/nu_single_status_credit.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policyengine_canada/tests/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.yaml b/policyengine_canada/tests/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.yaml index 5d57ff0e2..42fa3afa4 100644 --- a/policyengine_canada/tests/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.yaml +++ b/policyengine_canada/tests/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.yaml @@ -4,7 +4,7 @@ province_code: NU is_married: false output: - nu_single_status_credit: 16_000 + nu_single_status_credit: 16_862 - name: Person with married status period: 2023 From 2e89723ab6d6de93012b81ba9a6cf453685e5502 Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 21 Nov 2023 19:50:02 -0500 Subject: [PATCH 17/18] Update policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py Co-authored-by: Pavel Makarchuk <110687043+PavelMakarchuk@users.noreply.github.com> --- .../single_status_credit/nu_single_status_credit_eligible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py index b6f5a30ef..b7204dbad 100644 --- a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py +++ b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py @@ -4,7 +4,7 @@ class nu_single_status_credit_eligible(Variable): value_type = float entity = Person - label = "Nunavut single status credit eligible" + label = "Eligible for the Nunavut single status credit" definition_period = YEAR defined_for = ProvinceCode.NU From d0a98387079701a32be141abe17a5e4be27253eb Mon Sep 17 00:00:00 2001 From: runyao-yin <118035310+runyao-yin@users.noreply.github.com> Date: Tue, 21 Nov 2023 19:50:16 -0500 Subject: [PATCH 18/18] Update policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py Co-authored-by: Pavel Makarchuk <110687043+PavelMakarchuk@users.noreply.github.com> --- .../single_status_credit/nu_single_status_credit_eligible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py index b7204dbad..9f61eb0ad 100644 --- a/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py +++ b/policyengine_canada/variables/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit_eligible.py @@ -2,7 +2,7 @@ class nu_single_status_credit_eligible(Variable): - value_type = float + value_type = bool entity = Person label = "Eligible for the Nunavut single status credit" definition_period = YEAR