mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
basic estimate for cost of cylinder
This commit is contained in:
parent
703cdcf1cb
commit
c47d1db2ba
2 changed files with 10 additions and 5 deletions
|
|
@ -841,7 +841,7 @@ class Costs:
|
|||
"labour_days": labour_days,
|
||||
}
|
||||
|
||||
def high_heat_electric_storage_heaters(self, number_heated_rooms):
|
||||
def high_heat_electric_storage_heaters(self, number_heated_rooms, needs_cylinder):
|
||||
|
||||
"""
|
||||
We base the estimates for the cost of electric storage heaters on the cost per room as estimated by the
|
||||
|
|
@ -852,8 +852,12 @@ class Costs:
|
|||
:param number_heated_rooms: int, number of rooms to be heated
|
||||
"""
|
||||
|
||||
# 500 is the cost of a dual immersion heater - a rough estimate
|
||||
total_cost = 1200 * number_heated_rooms + 500
|
||||
if needs_cylinder:
|
||||
# 1000 is the cost of a new hot water cylinder
|
||||
total_cost = 1200 * number_heated_rooms + 1000
|
||||
else:
|
||||
# 500 is the cost of a dual immersion heater - a rough estimate
|
||||
total_cost = 1200 * number_heated_rooms + 500
|
||||
subtotal_before_vat = total_cost / (1 + self.VAT_RATE)
|
||||
vat = total_cost - subtotal_before_vat
|
||||
|
||||
|
|
|
|||
|
|
@ -858,7 +858,8 @@ class HeatingRecommender:
|
|||
|
||||
# Upgrade to electric storage heaters
|
||||
costs = self.costs.high_heat_electric_storage_heaters(
|
||||
number_heated_rooms=number_heated_rooms
|
||||
number_heated_rooms=number_heated_rooms,
|
||||
needs_cylinder=self.property.hotwater["system_type"] == "from main system"
|
||||
)
|
||||
if self.dual_heating:
|
||||
description = self.DUAL_HEATING_DESCRIPTIONS[
|
||||
|
|
@ -866,7 +867,7 @@ class HeatingRecommender:
|
|||
]["hhr"]["recommendation_description"]
|
||||
|
||||
else:
|
||||
description = "Install high heat retention electric storage heaters."
|
||||
description = "Install high heat retention electric storage heaters with an appropriate off-peak tariff."
|
||||
|
||||
# We check the existing heating system and controls
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue