blend_spreadsheet_loan_generator 0.1.34 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a7e3accb3a4c91a0e137d14ce6edd247ee88ebfe3d0274eecc6c00c8992bff3
|
|
4
|
+
data.tar.gz: 07d4a5959dfff0b803ebd21d8bd8373169d5e59e112a8ed8d9004cdfa6afff0c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f696017d9e91af295abfa3f6c35a2a8a166b4c2db458df06119e8572d19e36bdba78442f2529cced271394e5652fe8c29483c322daf513a75faeb28dcb5a8bd3
|
|
7
|
+
data.tar.gz: d98ef75e469b8bda35fd9a6d1f46ebaecf7e57d2f3e20164f7b2839a147aba24a1b2d5d59e09da7d13a97e317a89e98bac144efd05177a02b2b1594b0be8fe57
|
|
@@ -173,8 +173,8 @@ module BlendSpreadsheetLoanGenerator
|
|
|
173
173
|
def period_calculated_fees_formula(line:)
|
|
174
174
|
term = line - 1
|
|
175
175
|
if loan.deferred_and_capitalized > 0 && term > loan.deferred_and_capitalized
|
|
176
|
-
with_fees = "#{remaining_capital_start(line
|
|
177
|
-
without_fees = "#{remaining_capital_start(line
|
|
176
|
+
with_fees = "#{remaining_capital_start(line)} * (1 + #{period_rate(line)} + #{period_fees_rate(line)})^#{loan.deferred_and_capitalized} * (#{period_rate(line)} + #{period_fees_rate(line)})"
|
|
177
|
+
without_fees = "#{remaining_capital_start(line)} * (1 + #{period_rate(line)})^#{loan.deferred_and_capitalized} * #{period_rate(line)}"
|
|
178
178
|
"=#{with_fees} - #{without_fees}"
|
|
179
179
|
else
|
|
180
180
|
amount_to_capitalize = [
|