rentalprofitorloss 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/rentalprofitorloss.rb +32 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ade73c0d67d0b1eefa785dac3b1b655908273cb6
|
4
|
+
data.tar.gz: e0aae413316a79a2cdf50c5fdf3f1f6904883900
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e509fa4386bd37a378e3d42c92d6579281d8628cc9551c4483bf544fde7df0cdf0d60fff2774bb932c7faf63a336aff0f6309a63cf8a488b6a51ef6682cb1b06
|
7
|
+
data.tar.gz: e47915889173d8d12a20528a9e1373b5cba6d11034014fd02330a624eb09db6b438b2ed46c60af2468e0178febe54505d3eb8c3b34bcaaac8360ea94c4adfe3a
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Rentalprofitorloss
|
2
|
+
class Rentalmaster
|
3
|
+
def self.expense(gross_rent, mortage_int,repairs,insurance,mang_charges,agent_fees, other,wear_tear)
|
4
|
+
gross_rent = gross_rent
|
5
|
+
mortage_int = mortage_int
|
6
|
+
mi = mortage_int * 0.85
|
7
|
+
puts "#{mi}"
|
8
|
+
repairs = repairs
|
9
|
+
insurance = insurance
|
10
|
+
mang_charges = mang_charges
|
11
|
+
agent_fees = agent_fees
|
12
|
+
other = other
|
13
|
+
wear_tear = wear_tear
|
14
|
+
total_expenses= (mi + repairs + insurance + mang_charges + agent_fees + other)
|
15
|
+
rental_profit_or_loss = gross_rent - total_expenses
|
16
|
+
net_profit_or_loss = rental_profit_or_loss - wear_tear
|
17
|
+
income_tax = net_profit_or_loss * 0.40
|
18
|
+
prsi = net_profit_or_loss * 0.04
|
19
|
+
usc = net_profit_or_loss * 0.08
|
20
|
+
total_value_remaining = net_profit_or_loss * 0.52
|
21
|
+
return total_expenses,mi, rental_profit_or_loss, net_profit_or_loss, income_tax,prsi,usc,total_value_remaining
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rentalprofitorloss
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Hari Narayanan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-04-10 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: returns profit or loss calculation based on input parameters.
|
14
|
+
email: hnarayanan5@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/rentalprofitorloss.rb
|
20
|
+
homepage: http://rubygems.org/gems/rentalprofitorloss
|
21
|
+
licenses: []
|
22
|
+
metadata: {}
|
23
|
+
post_install_message:
|
24
|
+
rdoc_options: []
|
25
|
+
require_paths:
|
26
|
+
- lib
|
27
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '0'
|
32
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
requirements: []
|
38
|
+
rubyforge_project:
|
39
|
+
rubygems_version: 2.6.8
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: Rental profit or loss calculation
|
43
|
+
test_files: []
|