Added in loft insulation method

This commit is contained in:
Khalim Conn-Kowlessar 2023-11-22 11:56:03 +00:00
parent a74459bf46
commit 89c75dcd5a

View file

@ -84,7 +84,7 @@ class Costs:
"labour_hours": labour_hours "labour_hours": labour_hours
} }
def cavity_wall_insulation(self, material): def loft_insulation(self, material):
""" """
Calculates the total cost for cavity wall insulation based on material and labor costs, Calculates the total cost for cavity wall insulation based on material and labor costs,
including contingency, preliminaries, profit, and VAT. including contingency, preliminaries, profit, and VAT.
@ -92,26 +92,21 @@ class Costs:
:return: A dictionary containing detailed cost breakdown. :return: A dictionary containing detailed cost breakdown.
""" """
# Cost per m2 # Cost per m2
material = { # material = {
"description": "Crown Dritherm Cavity Slab 37 (Thermal conductivity 0.037 W/mK) glass fibre batt or other " # "description": "Crown Loft Roll 44 glass fibre roll",
"equal; as full or partial cavity fill; including cutting and fitting around wall ties and " # "depth": 270,
"retaining discs", # "thermal_conductivity": 0.044,
"depth": 75, # "prime_cost": None,
"thermal_conductivity": 0.037, # "material_cost": 5.91938,
"prime_cost": 5.17, # "labour_cost": 1.96,
"material_cost": 5.62, # "labour_hours": 0.11
"labour_cost": 2.25, # }
"labour_hours": 0.13
}
material_cost_per_m2 = material["material_cost"] material_cost_per_m2 = material["material_cost"]
wall_area = self.property.insulation_wall_area floor_area = self.property.floor_area
# This is the amount of material required in m3, assuming a standard 75mm depth base_material_cost = material_cost_per_m2 * floor_area
volume = 0.075 * wall_area labour_cost = material["labour_cost"] * floor_area
base_material_cost = material_cost_per_m2 * wall_area
labour_cost = material["labour_cost"] * wall_area
subtotal_before_profit = base_material_cost + labour_cost subtotal_before_profit = base_material_cost + labour_cost
@ -125,7 +120,7 @@ class Costs:
total_cost = subtotal_before_vat + vat_cost total_cost = subtotal_before_vat + vat_cost
labour_hours = material["labour_hours"] * wall_area labour_hours = material["labour_hours"] * floor_area
return { return {
"total": total_cost, "total": total_cost,