Bugfix/fix projected total amount in fire calculator (#825)

* Fix calculation of projected total amount

* Update changelog
pull/827/head
Thomas Kaul 3 years ago committed by GitHub
parent 6cfd052781
commit 70723f8d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Fixed
- Fixed an issue with the calculation of the projected total amount in the _FIRE_ calculator
## 1.135.0 - 10.04.2022 ## 1.135.0 - 10.04.2022
### Added ### Added

@ -234,7 +234,7 @@ export class FireCalculatorComponent
datasetPrincipal.data.push(principal.toNumber()); datasetPrincipal.data.push(principal.toNumber());
datasetInterest.data.push(interest.toNumber()); datasetInterest.data.push(interest.toNumber());
if (period === t - 1) { if (period === t) {
this.projectedTotalAmount = totalAmount.toNumber(); this.projectedTotalAmount = totalAmount.toNumber();
} }
} }

Loading…
Cancel
Save