From 2c686797bd0d8621ae9d260769c1fb8180b496ad Mon Sep 17 00:00:00 2001 From: zzhhaa Date: Thu, 28 Nov 2024 10:19:13 +0100 Subject: [PATCH] chore: rename var to HEADS_PER_HOUSEHOLD --- app/models/Household.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/Household.ts b/app/models/Household.ts index 5d1e90e..0515906 100644 --- a/app/models/Household.ts +++ b/app/models/Household.ts @@ -9,8 +9,7 @@ import { ForecastParameters } from "./ForecastParameters"; import { socialRentAdjustmentTypes } from "../data/socialRentAdjustmentsRepo"; import { Lifetime, LifetimeParams } from "./Lifetime"; -/** Assumed number of heads per-house */ -const HOUSE_MULTIPLIER = 2.4; +const HEADS_PER_HOUSEHOLD = 2.4; type ConstructorParams = Pick< Household, @@ -43,7 +42,7 @@ export class Household { this.gasBillYearly = params.gasBillYearly; this.property = params.property; this.forecastParameters = params.forecastParameters; - this.incomeYearly = HOUSE_MULTIPLIER * params.incomePerPersonYearly; + this.incomeYearly = HEADS_PER_HOUSEHOLD * params.incomePerPersonYearly; this.tenure = this.calculateTenures(params); this.lifetime = this.calculateLifetime(params); }