texas-royalty-calc 1.0.0
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 +7 -0
- data/README.md +7 -0
- data/lib/texas_royalty_calc.rb +13 -0
- metadata +46 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d62adc7e894ceae3811c1031b2558bdfa04047359db2ab865222c0438621139c
|
|
4
|
+
data.tar.gz: 156a4c72baf8a3f8616c4b9b5b33d01e9d49853d1c2bb1af70345b65262a46ae
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: e4c4cffbb7fcbc765719c7f2c3f79f9e95455dd5421ee16d3b3bf25c1db7cd2416e7ae5b8df2aa1e83ef4641b9d1932441394546d649cdd02f498bb440807f00
|
|
7
|
+
data.tar.gz: 55fad39d0b3c14407588709be62d49dc76e944b030408107cd77b2fabba4a76bc4d6394af917e6e39346816142027078c06c880f747efaf6ba5ec03111bfcfaa
|
data/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# texas-royalty-calc
|
|
2
|
+
|
|
3
|
+
Helpers for estimating oil and gas royalty payments and decimal interest for mineral owners.
|
|
4
|
+
|
|
5
|
+
Published by [Texas Royalty Brokers](https://texasroyaltybrokers.com/), which helps mineral owners across Texas understand how policy, markets, and energy trends affect their land, their royalties, and their communities.
|
|
6
|
+
|
|
7
|
+
Website: https://texasroyaltybrokers.com/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Helpers for estimating oil and gas royalty payments.
|
|
2
|
+
# Texas Royalty Brokers: https://texasroyaltybrokers.com/
|
|
3
|
+
module TexasRoyaltyCalc
|
|
4
|
+
def self.decimal_interest(net_mineral_acres, unit_acres, royalty_rate)
|
|
5
|
+
return 0.0 if unit_acres <= 0
|
|
6
|
+
net_mineral_acres.to_f / unit_acres * royalty_rate
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def self.monthly_payment(gross_value, decimal_interest, deductions)
|
|
10
|
+
p = gross_value * decimal_interest - deductions
|
|
11
|
+
p < 0 ? 0.0 : p
|
|
12
|
+
end
|
|
13
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: texas-royalty-calc
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Texas Royalty Brokers
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-11-17 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Small helpers for estimating oil and gas royalty payments and decimal
|
|
14
|
+
interest for mineral owners. Published by Texas Royalty Brokers.
|
|
15
|
+
email: ericw@texasroyaltybrokers.com
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- README.md
|
|
21
|
+
- lib/texas_royalty_calc.rb
|
|
22
|
+
homepage: https://texasroyaltybrokers.com/
|
|
23
|
+
licenses:
|
|
24
|
+
- MIT
|
|
25
|
+
metadata:
|
|
26
|
+
homepage_uri: https://texasroyaltybrokers.com/
|
|
27
|
+
post_install_message:
|
|
28
|
+
rdoc_options: []
|
|
29
|
+
require_paths:
|
|
30
|
+
- lib
|
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '0'
|
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
requirements: []
|
|
42
|
+
rubygems_version: 3.5.22
|
|
43
|
+
signing_key:
|
|
44
|
+
specification_version: 4
|
|
45
|
+
summary: Helpers for estimating oil and gas royalty payments and decimal interest.
|
|
46
|
+
test_files: []
|