Skip to content

Commit

Permalink
chore: rename var to HEADS_PER_HOUSEHOLD
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa committed Nov 28, 2024
1 parent bfa2c4d commit 2c68679
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/models/Household.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 2c68679

Please sign in to comment.