From 6b5246fa21831f5ef53010bd54cfa347ab5156ab Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 3 Sep 2024 17:04:27 +0100 Subject: [PATCH] finished with BCC tender --- etl/customers/bcc_tender/app.py | 49 +++++++++++++++++++++++++-------- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/etl/customers/bcc_tender/app.py b/etl/customers/bcc_tender/app.py index c949eecf..281cf864 100644 --- a/etl/customers/bcc_tender/app.py +++ b/etl/customers/bcc_tender/app.py @@ -115,30 +115,33 @@ n_gbis_prs_ge_needs_scaling_on_council_tax_band = epc_data[ epc_data["eligibility_type"] == "gbis_prs_ge_needs_scaling_on_council_tax_band" ].shape[0] -n_eligibility_1 = np.floor(n_eco4_oo_hthg_needs_scaling_on_benefits * PROPORTION_OF_HOMEOWNERS_CLAIMING_FOR_BENEFITS) +# We're going to make the broad assumption that all homeowners claiming for benefits, live in homes in council tax +# bands A-D. There there are no additionals in eligibility 4 and 5 -n_eligibility_2 = np.floor(n_eco4_prs_hthg_needs_scaling_on_benefits * PROPORTION_OF_HOMES_ON_BENEFITS) +# n_eligibility_1 = np.floor(n_eco4_oo_hthg_needs_scaling_on_benefits * PROPORTION_OF_HOMEOWNERS_CLAIMING_FOR_BENEFITS) +n_eligibility_1 = np.floor(n_eco4_oo_hthg_needs_scaling_on_benefits * COUNCIL_TAX_BAND_A_TO_D_PROPORTION) + +# n_eligibility_2 = np.floor(n_eco4_prs_hthg_needs_scaling_on_benefits * PROPORTION_OF_HOMES_ON_BENEFITS) +n_eligibility_2 = np.floor(n_eco4_prs_hthg_needs_scaling_on_benefits * COUNCIL_TAX_BAND_A_TO_D_PROPORTION) n_eligiblity_3 = n_eco4_social # We subtract the number of homes in eligiblity 1, from the number of homes under ECO4 OO, HTHG, before scaling on # benefits. This gives us the number of homes that were not on benefits. We then scale this number based on the % of # homes in council tax bands A-D -n_eligiblity_4 = np.floor( - (n_eco4_oo_hthg_needs_scaling_on_benefits - n_eligibility_1) * COUNCIL_TAX_BAND_A_TO_D_PROPORTION -) +# n_eligiblity_4 = np.floor( +# (n_eco4_oo_hthg_needs_scaling_on_benefits - n_eligibility_1) * COUNCIL_TAX_BAND_A_TO_D_PROPORTION +# ) # We also need to add on homes that fall out of eligibility 2 n_eligibiltiy_5 = np.floor( - np.floor(n_gbis_prs_ge_needs_scaling_on_council_tax_band * COUNCIL_TAX_BAND_A_TO_D_PROPORTION) + - np.floor((n_eco4_prs_hthg_needs_scaling_on_benefits - n_eligibility_2) * COUNCIL_TAX_BAND_A_TO_D_PROPORTION) + np.floor(n_gbis_prs_ge_needs_scaling_on_council_tax_band * COUNCIL_TAX_BAND_A_TO_D_PROPORTION) + # np.floor((n_eco4_prs_hthg_needs_scaling_on_benefits - n_eligibility_2) * COUNCIL_TAX_BAND_A_TO_D_PROPORTION) ) -total_eligible = n_eligibility_1 + n_eligibility_2 + n_eligiblity_3 + n_eligiblity_4 + n_eligibiltiy_5 - # We don't scale up the # of homes based on % of homes with an EPC, because n_owner_occupied = epc_data[epc_data["TENURE"].isin(owner_occupied_tenures)].shape[0] -oo_eligibility = (n_eligibility_1 + n_eligiblity_4) +oo_eligibility = n_eligibility_1 # 68% of owner occupied are eligibiltiy proportion_of_oo_eligible = oo_eligibility / n_owner_occupied @@ -156,4 +159,28 @@ social_eligibility = n_eligiblity_3 total_eligible = oo_eligibility + prs_eligibility + social_eligibility proportion_of_homes_eligibile = total_eligible / N_HOUSEHOLDS_IN_BIRMINGHAM -# Approx 58% of homes in Birmingham are eligible for ECO/GBIS funding +# Approx 53% of homes in Birmingham are eligible for ECO/GBIS funding + +# Approximately 53% of Homes are eligible for some form of ECO4 or GBIS funding, 227k homes +# This is broken down as follows: +# - 155k owner occupiers +# - 33k private rentals +# - 39k social housing + +# We can't seem to identify the properties owned by the council in the company ownership data, because what is the +# entity that owns the property? Is it the council, or is it a company that is owned by the council? We can't be sure +# and so since BCC owns 54,000 social housing properties (5k) supported housing +# [https://www.birmingham.gov.uk/info/50094/housing_options/2686/apply_for_social_housing#:~:text=We%20manage +# %20around%2054%2C000%20social,a%20member%20of%20your%20household.] +# and there are 78,410 social housing properties in Birmingham, we can assume that the council owns 54,000 of these +# and so 69% of the social housing is owned by the Council + +# Since we saw that 38,779 of 78,410 social housing looked to be able to benefit from ECO/GBIS funding, we can assume +# that 69% of these are owned by the council, which is 26,757 properties + +# So, with these assumptions in mind: +# We can commit to [x] per annum based on your 54k council-owned, of which approximately 27k are likely to be eligible +# for some form of ECO/GBIS funding. We will work directly with Housing associations to address the remaining 12k +# social properties that may be eligible for funding through ECO/GBIS. +# We will market directly to the 33k private rentals and 155k owner occupiers that are eligible for funding, +# and assuming a 5% conversion, will aim to complete work on