blend_spreadsheet_loan_generator 0.1.30 → 0.1.31
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: 398e368c7cf8e095e275942ec8d8f5375a3452f947bd97bba30cb06520a4437b
|
4
|
+
data.tar.gz: d9d40882295305ad46b49d5b76abeaa2ca89a89c5f0ffac453bc0fc095592873
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c790e70c21a56c50463428a037b3dfb472e086ff8c739fd36f0a9342914091e54253e2c415139c94c3559ee89e8a65f7ee2b0f2df0467b0ca43bcd2a1f1bc790
|
7
|
+
data.tar.gz: 03243acbdc2824c7102c59858a8bdd206376a0941a727ad3328877aed9d7a0b675f68e4e748c53a17ae55d19ed1cf0b72ade2f6e047562a2a1692b7c6e9072f6
|
@@ -191,8 +191,8 @@ module BlendSpreadsheetLoanGenerator
|
|
191
191
|
def capitalized_fees_end_formula(line:)
|
192
192
|
term = line - 1
|
193
193
|
if term <= loan.deferred_and_capitalized
|
194
|
-
with_fees = "#{
|
195
|
-
without_fees = "#{
|
194
|
+
with_fees = "#{remaining_capital_start(line)} * (1 + #{period_fees_rate(line)} + #{period_rate(line)})^#{index(line)}"
|
195
|
+
without_fees = "#{remaining_capital_start(line)} * (1 + #{period_rate(line)})^#{index(line)}"
|
196
196
|
"=ARRONDI(#{with_fees} - #{without_fees})"
|
197
197
|
else
|
198
198
|
"=ARRONDI(#{capitalized_fees_start(line)} - #{period_reimbursed_capitalized_fees(line)}; 2)"
|