blend_spreadsheet_loan_generator 0.1.21 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97656de6803defd1af54366733c9f096f2a571fba89576b0a96ced269bfdebae
|
4
|
+
data.tar.gz: 9b0036e1d46ae2835d7d1add57af17e18b29107a9b29e1f8e00dde54d86fef48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ae85edc2da12b6d1689f33e7564486fad79968c51c5cbb8d3ffb998b2c563d544f5267dd3b3df5a869ac98bd28742d9ccd0e1908e0f8b186b0b7b04835edfc2
|
7
|
+
data.tar.gz: 5896188fffc2c776cf8f9a8ba847c35f4848830ac8f1a893bc59a216e24a5f11b994d1e41dd4304fa15c38e1513ecd543721e22ba93e19ece033ed8021221744
|
@@ -75,7 +75,13 @@ module BlendSpreadsheetLoanGenerator
|
|
75
75
|
values[last_paid_line + 1][:capitalized_interests_start] +
|
76
76
|
values[last_paid_line + 1][:capitalized_fees_start]
|
77
77
|
)
|
78
|
-
|
78
|
+
actual_capital_paid = (
|
79
|
+
capital_paid -
|
80
|
+
values[last_paid_line + 1][:period_calculated_interests] -
|
81
|
+
values[last_paid_line + 1][:period_calculated_fees]
|
82
|
+
)
|
83
|
+
|
84
|
+
ratio = options.fetch(:ratio, (actual_capital_paid.to_f / values[last_paid_line + 1][:remaining_capital_start])).to_f
|
79
85
|
guaranteed_interests_paid = (
|
80
86
|
ratio * total_guaranteed_interests
|
81
87
|
)
|