Skip to content

Commit 6423daa

Browse files
committed
[RELEASE] 0.10.3
1 parent e0f51a9 commit 6423daa

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.10.3] - 2021-08-11
11+
1012
### Added
1113

1214
- `Approvals` class

calc.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
const bayViewValue = 625000
2+
const remainingLoad = 452238
3+
const equityLVR = 0.8
4+
5+
const housePrice = 600000
6+
const stampDuty = 25000
7+
const LMI = 24000
8+
const cash = 34000
9+
10+
const equity = equityLVR * bayViewValue - remainingLoad
11+
const deposit = cash + equity
12+
const upFrontCosts = LMI + stampDuty
13+
const depositAfterUpFrontCosts = deposit - upFrontCosts
14+
const borrowingAmount = housePrice - depositAfterUpFrontCosts
15+
const LVR = (borrowingAmount / housePrice) * 100
16+
17+
const numberFormat = new Intl.NumberFormat('en-AU', {
18+
style: 'currency',
19+
currency: 'AUD',
20+
})
21+
22+
console.log({
23+
housePrice: numberFormat.format(housePrice),
24+
stampDuty: numberFormat.format(stampDuty),
25+
LMI: numberFormat.format(LMI),
26+
cash: numberFormat.format(cash),
27+
equity: numberFormat.format(equity),
28+
deposit: numberFormat.format(deposit),
29+
upFrontCosts: numberFormat.format(upFrontCosts),
30+
depositAfterUpFrontCosts: numberFormat.format(depositAfterUpFrontCosts),
31+
borrowingAmount: numberFormat.format(borrowingAmount),
32+
LVR: LVR.toPrecision(4),
33+
})

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@oneblink/sdk",
33
"description": "OneBlink SDK to serve as an entry point for all OneBlink Services in NodeJS",
4-
"version": "0.10.3-beta.3",
4+
"version": "0.10.3",
55
"author": "OneBlink <[email protected]> (https://oneblink.io)",
66
"bugs": {
77
"url": "https://github.com/oneblink/sdk-node-js/issues"

0 commit comments

Comments
 (0)