blend_spreadsheet_loan_generator 0.1.108 → 0.1.112
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: 526e63e619b84d693c93294a98fd9354c9b35f4eb3c47b6d0e4ff49b533f30cd
|
4
|
+
data.tar.gz: 81192d4e8cd832a94f83948beb8b513463456a92cedf3f5d8501cc4f11179345
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f159a1b328f8b3def5613359277911aa27183eeed5d27140a54ce4fbf7d0dc79e59ec0bee630ff71c9dc20939de21c3b843f7c5e375276907a9187d5f2820ada
|
7
|
+
data.tar.gz: 15a5ef2042d922da1421c2d367961aa4f0f8667b2ff3a2956def5ad95ad1e6ad3a63ba2190e075e00629e1ec33c24373222fea743a4414e1865177d738628119
|
@@ -80,21 +80,18 @@ module BlendSpreadsheetLoanGenerator
|
|
80
80
|
due_on = values[last_paid_line + 1][:due_on] + 1.month
|
81
81
|
|
82
82
|
capital_paid = amount_paid.to_f - (
|
83
|
-
values[last_paid_line + 1][:capitalized_interests_start] +
|
84
|
-
values[last_paid_line + 1][:capitalized_fees_start] +
|
85
|
-
values[last_paid_line + 1][:period_calculated_interests] +
|
86
|
-
values[last_paid_line + 1][:period_calculated_fees]
|
87
|
-
)
|
88
|
-
capital_paid_for_ratio = amount_paid.to_f - (
|
89
83
|
values[last_paid_line + 1][:period_interests] +
|
90
|
-
values[last_paid_line + 1][:
|
84
|
+
values[last_paid_line + 1][:period_reimbursed_capitalized_interests] +
|
85
|
+
values[last_paid_line + 1][:period_fees] +
|
86
|
+
values[last_paid_line + 1][:period_reimbursed_capitalized_fees] +
|
87
|
+
values[last_paid_line + 1][:capitalized_fees_end]
|
91
88
|
)
|
92
89
|
remaining_capital_for_ratio = (
|
93
|
-
values[last_paid_line + 1][:
|
90
|
+
values[last_paid_line + 1][:remaining_capital_start] +
|
94
91
|
values[last_paid_line + 1][:capitalized_interests_end]
|
95
92
|
)
|
96
93
|
|
97
|
-
ratio = options.fetch(:ratio,
|
94
|
+
ratio = options.fetch(:ratio, capital_paid.to_f / remaining_capital_for_ratio).to_f
|
98
95
|
guaranteed_interests_paid = ratio * total_guaranteed_interests
|
99
96
|
guaranteed_fees_paid = ratio * total_guaranteed_fees
|
100
97
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blend_spreadsheet_loan_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.112
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MZiserman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|