blend_spreadsheet_loan_generator 0.1.103 → 0.1.104
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: f3b33869e16c21139b0b1a8cbe50780acbb3eb84fc1c83493f9cf0fa0744d60e
|
4
|
+
data.tar.gz: b93a53cded0a95d38b16937ad69b3d37b32bda8345dedbcacc7449723b0df5d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95a633cd848b3cb9006ff4d8685895ba76845b3074c9b2320db14d2b54fcc5f5d51658b449bda65a2340431742c3fbc481a6974f02afa5f31217bbea85eb8388
|
7
|
+
data.tar.gz: c37ccf9331d18143f8b67f65d9ca1a30dff07ca28cbcca944f84630bade18ac2b46783150183f6a8da907e5b2f5fe5b51ce22404c6e799f7123078dd789463db
|
@@ -170,7 +170,7 @@ module BlendSpreadsheetLoanGenerator
|
|
170
170
|
|
171
171
|
def period_calculated_fees_formula(line:, first_term_skip: false)
|
172
172
|
term = line - 1
|
173
|
-
return excel_float(0.0) if first_term_skip
|
173
|
+
return excel_float(0.0) if first_term_skip && term == 1
|
174
174
|
if loan.bullet_term?(term)
|
175
175
|
index = first_term_skip ? index(line - 1) : index(line)
|
176
176
|
|
@@ -207,7 +207,7 @@ module BlendSpreadsheetLoanGenerator
|
|
207
207
|
|
208
208
|
def capitalized_fees_end_formula(line:, first_term_skip: false)
|
209
209
|
term = line - 1
|
210
|
-
return excel_float(0.0) if first_term_skip
|
210
|
+
return excel_float(0.0) if first_term_skip && term == 1
|
211
211
|
if term <= loan.deferred_and_capitalized
|
212
212
|
index = first_term_skip ? index(line - 1) : index(line)
|
213
213
|
with_fees = "#{remaining_capital_start(line)} * (1 + #{period_fees_rate(line)} + #{period_rate(line)})^#{index}"
|