blend_spreadsheet_loan_generator 0.1.104 → 0.1.105
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: 72957cc9d2f27e41c08296925655eb7a260e7fdaef6c0930dcc308f9a7c8ab25
|
4
|
+
data.tar.gz: ff081b04d72056d4de09f73e026069c4eae6151f1a684fab698aa796065ae635
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22fd450d7087a51b999348bb324a9d38726ea33425ba85e77c77026a871e7ff4ff0fb2e2ff685aa7110d3920efaeccabce75382e15f4f3ee8dc2558e27dbd04c
|
7
|
+
data.tar.gz: 12e57b1f793e676501f7d1c127052eaf0d1f313b9a10a90238c1aa6164fb0ab2bd6082a79cde7b3c1dc78522d9044b02e1b6ee978b839f3d222a38dda537c0de
|
@@ -180,7 +180,7 @@ module BlendSpreadsheetLoanGenerator
|
|
180
180
|
|
181
181
|
"=#{current} - #{capitalized_fees_start(line)}"
|
182
182
|
elsif loan.deferred_and_capitalized > 0 && term > loan.deferred_and_capitalized
|
183
|
-
index = first_term_skip ? loan.deferred_and_capitalized : loan.deferred_and_capitalized
|
183
|
+
index = first_term_skip ? loan.deferred_and_capitalized - 1 : loan.deferred_and_capitalized
|
184
184
|
|
185
185
|
with_fees = "#{remaining_capital_start(line)} * (1 + #{period_rate(line)} + #{period_fees_rate(line)})^#{index} * (#{period_rate(line)} + #{period_fees_rate(line)})"
|
186
186
|
without_fees = "#{remaining_capital_start(line)} * (1 + #{period_rate(line)})^#{index} * #{period_rate(line)}"
|