diff --git a/openfisca_aotearoa/parameters/disability_allowance/max_weekly_benefit.yaml b/openfisca_aotearoa/parameters/disability_allowance/max_weekly_benefit.yaml deleted file mode 100644 index 75a46026..00000000 --- a/openfisca_aotearoa/parameters/disability_allowance/max_weekly_benefit.yaml +++ /dev/null @@ -1,5 +0,0 @@ -description: Maximum rate of disability allowance under section 85 -reference: https://www.legislation.govt.nz/act/public/2018/0032/latest/DLM6784880.html -values: - 2018-11-26: - value: 70.04 diff --git a/openfisca_aotearoa/parameters/social_security/disability_allowance/base.yaml b/openfisca_aotearoa/parameters/social_security/disability_allowance/base.yaml index a9ca5b0a..1b8da8c8 100644 --- a/openfisca_aotearoa/parameters/social_security/disability_allowance/base.yaml +++ b/openfisca_aotearoa/parameters/social_security/disability_allowance/base.yaml @@ -1,4 +1,4 @@ -description: Child Disability Allowance +description: Disability Allowance metadata: # currency or /1 (rate) or year (never used) unit: currency diff --git a/openfisca_aotearoa/variables/acts/social_security/disability_allowance/disability_allowance.py b/openfisca_aotearoa/variables/acts/social_security/disability_allowance/disability_allowance.py index 65552387..f2bde4c6 100644 --- a/openfisca_aotearoa/variables/acts/social_security/disability_allowance/disability_allowance.py +++ b/openfisca_aotearoa/variables/acts/social_security/disability_allowance/disability_allowance.py @@ -207,8 +207,8 @@ class disability_allowance__benefit(variables.Variable): reference = "https://www.legislation.govt.nz/act/public/2018/0032/latest/whole.html#DLM6783280" def formula_2018_11_26(persons, period, parameters): - - return persons("disability_allowance__entitled", period) * parameters(period).disability_allowance.max_weekly_benefit + disability_allowance = parameters(period.first_day).social_security.disability_allowance.base.clauses["clause_2"] + return persons("disability_allowance__entitled", period) * disability_allowance class social_security__sole_parent(variables.Variable):