blend_spreadsheet_loan_generator 0.1.28 → 0.1.29
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: c2feb14eec33c86a032e711df82ad3b93bf8fd5b3f97c3746a5a24bef7814398
|
4
|
+
data.tar.gz: e526d50983256ede22d4d54d3e5f0486c36ca88509d254d57b8ad77f5e86a8a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59c7cf8b548249e27dd0c945598ab2d9a8287c32372b370d6bbbec2f7ffaf960ed978e9fd6e747564541152659dc841f57410769c3fd2571721898f2b389163a
|
7
|
+
data.tar.gz: 3a83c45004a61448074532f5d7ee1d0541b54734657821d965ab8de33649b056108470d9ac26c1056c3f78d8dd1630ce3b3fad32e01b1795679e2ed492bddd2f
|
@@ -89,8 +89,13 @@ module BlendSpreadsheetLoanGenerator
|
|
89
89
|
values[last_paid_line + 1][:capitalized_fees_start] +
|
90
90
|
values[last_paid_line + 1][:period_calculated_fees]
|
91
91
|
)
|
92
|
+
remaining_capital_for_ratio = (
|
93
|
+
values[last_paid_line + 1][:remaining_capital_start] +
|
94
|
+
values[last_paid_line + 1][:capitalized_interests_start] +
|
95
|
+
values[last_paid_line + 1][:period_calculated_interests]
|
96
|
+
)
|
92
97
|
|
93
|
-
ratio = options.fetch(:ratio,
|
98
|
+
ratio = options.fetch(:ratio, capital_paid_for_ratio.to_f / remaining_capital_for_ratio).to_f
|
94
99
|
guaranteed_interests_paid = ratio * total_guaranteed_interests
|
95
100
|
guaranteed_fees_paid = ratio * total_guaranteed_fees
|
96
101
|
|