-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tidy up of the
SocialRent
class (#28)
* tidy up the class * fix internal setting * Grouped constants outside of the class definition * Typos fix. SocialRentAdjusment type also fixed. --------- Co-authored-by: Gabriele Granello <[email protected]>
- Loading branch information
1 parent
82705f9
commit e047b55
Showing
6 changed files
with
345 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,32 @@ | ||
export const MONTHS_PER_YEAR = 12; | ||
export const MONTHS_PER_YEAR = 12; | ||
export const WEEKS_PER_MONTH = 4.2; | ||
|
||
export type bedWeightsAndCapsType = { | ||
numberOfBedrooms: number[]; | ||
weight: number[]; | ||
socialRentCap: number[]; | ||
}; | ||
|
||
/** | ||
* multiplying value weight and social rent cap for a property based on number of bed rooms | ||
*/ | ||
export const BED_WEIGHTS_AND_CAPS: bedWeightsAndCapsType = { | ||
numberOfBedrooms: [0, 1, 2, 3, 4, 5, 6], | ||
weight: [0.8, 0.9, 1, 1.1, 1.2, 1.3, 1.4], | ||
socialRentCap: [155.73, 155.73, 164.87, 174.03, 183.18, 192.35, 201.5], | ||
}; | ||
|
||
export type nationalAverageType = { | ||
socialRentWeekly: number; | ||
propertyValue: number; | ||
earningsWeekly: number; | ||
}; | ||
|
||
/** | ||
* National average values | ||
*/ | ||
export const NATIONAL_AVERAGES: nationalAverageType = { | ||
socialRentWeekly: 54.62, | ||
propertyValue: 49750, | ||
earningsWeekly: 316.4, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.