XML 53 R39.htm IDEA: XBRL DOCUMENT
v3.22.4

Leases (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2022
Leases. |
Schedule of assets and liabilities related to operating leases | ​
​ | ​ | ​ | ​ | ​ | ​ | ​
December 31, |  | 2022 |  | 2021
(in thousands) | ​ | ​ | ​ | ​ | ​ | ​
Assets: |  |  |  |  | ​ |
Finance lease right-of-use assets | ​ | $ | — | ​ | $ | 20,327
Operating lease right-of-use assets | ​ | $ | 28,864 | ​ | $ | 24,572
​ | ​ | ​ | ​ | ​ | ​ | ​
Liabilities: | ​ | ​ | ​ | ​ | ​ | ​
Current portion of finance lease | ​ | ​ | — | ​ | ​ | 20,194
Current portion of operating leases | ​ | $ | 10,728 | ​ | $ | 6,387
Long-term operating lease liabilities | ​ | ​ | 19,517 | ​ | ​ | 19,719
Total operating lease liabilities | ​ | $ | 30,245 | ​ | $ | 26,106
​
Schedule of lease cost | ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Year ended December 31, |  | 2022 | ​ | 2021 | ​ | 2020
(in thousands) | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Finance lease cost | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Amortization of leased assets | ​ | $ | 3,390 | ​ | $ | 1,452 | ​ | $ | —
Interest on lease liabilities | ​ | ​ | 283 | ​ | ​ | 116 | ​ | ​ | —
Total finance lease cost | ​ | $ | 3,673 | ​ | $ | 1,568 | ​ | $ | —
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Operating lease cost | ​ | $ | 9,615 | ​ | $ | 7,580 | ​ | $ | 8,373
Short-term lease cost | ​ | ​ | 9,192 | ​ |  | 3,626 | ​ |  | 2,577
Variable lease cost | ​ | ​ | 647 | ​ |  | 772 | ​ |  | 624
Sublease income | ​ | ​ | (1,021) | ​ |  | (831) | ​ |  | (295)
Total operating lease cost | ​ | $ | 18,433 | ​ | $ | 11,147 | ​ | $ | 11,279
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Total lease cost | ​ | $ | 22,106 | ​ | $ | 12,715 | ​ | $ | 11,279
Schedule of other information of leases | ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Other information: |  | ​ | ​ | ​ |  | ​ |
As of December 31, | ​ | 2022 | ​ | 2021 | ​
Cash paid for amounts included in the measurement of lease liabilities – operating leases (in thousands) | ​ | $ | 8,742 | ​ | $ | 10,151 | ​
ROU assets obtained in exchange for operating lease liabilities (in thousands) | ​ | $ | 12,882 | ​ | $ | 5,974 | ​
ROU assets obtained in exchange for finance lease liabilities (in thousands) | ​ | $ | — | ​ | $ | 21,778 | ​
Weighted average remaining lease term – finance lease (months) | ​ | ​ | — | ​ | ​ | 8 | ​
Weighted average remaining lease term – operating leases (years) | ​ | ​ | 5.14 | ​ | ​ | 5.41 | ​
Weighted average discount rate – finance lease | ​ | ​ | — | % | ​ | 1.68 | %
Weighted average discount rate – operating leases | ​ | ​ | 3.93 | % | ​ | 2.29 | %
​
Schedule of maturity of lease liabilities | ​
​ | ​ | ​ | ​ | ​ | ​ | ​
As of December 31, |  | 2022 |  | 2021
(in thousands) | ​ | ​ | ​ | ​ | ​ | ​
2022 | ​ | $ | — | ​ | $ | 7,015
2023 |  | ​ | 12,091 |  | ​ | 4,483
2024 |  | ​ | 6,164 |  | ​ | 3,619
2025 |  | ​ | 4,001 |  | ​ | 2,667
2026 |  | ​ | 3,380 |  | ​ | 2,421
2027 |  | ​ | 2,615 |  | ​ | —
Thereafter |  | ​ | 6,618 |  | ​ | 7,742
Total lease payments |  | ​ | 34,869 |  | ​ | 27,947
Less: Amounts representing interest |  | ​ | (4,623) |  | ​ | (1,841)
Present value of lease liabilities | ​ | $ | 30,246 | ​ | $ | 26,106
​

X
- Definition Tabular disclosure of assets and liabilities related to operating leases. + References No definition available. + Details
Name: | res_AssetsAndLiabilitiesRelatedToOperatingLeasesTableTextBlock
Namespace Prefix: | res_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of aging analysis for financing receivable. + References No definition available. + Details
Name: | res_ScheduleOfOtherInformationOfLeasesTableTextBlock
Namespace Prefix: | res_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 + Details
Name: | us-gaap_LeaseCostTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_LeasesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 6 -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918701-209980 + Details
Name: | us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration