XML 64 R52.htm IDEA: XBRL DOCUMENT
v3.22.4

Long-Term Debt and Short-Term Borrowings, Interest Rate Swap Agreement (Details) - Interest Rate Swap [Member] - Variable Rate Pennsylvania Economic Development Financing Authority Exempt Facilities Revenue Refunding Bonds, Series 2008A, due 2029 [Member] - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2022 | Dec. 31, 2021
Interest Rate Swap Agreement [Abstract] |  |
Notional amount of swap | $ 12,000 |
Potential payment to counterparty | $ 719 |
Fixed interest rate | 3.16% |
Basis spread adjustment | 0.11448% |
Net payment rate on swap | 2.04% | 3.10%
Interest rate spread | 1.22% | 0.07%
Overall effective rate, including variable interest and swap payments | 4.38% | 3.23%
LIBOR [Member] |  |
Interest Rate Swap Agreement [Abstract] |  |
Percentage of variable interest rate | 59.00% |
Term of variable rate | 1 month |
SOFR [Member] |  |
Interest Rate Swap Agreement [Abstract] |  |
Percentage of variable interest rate | 59.00% |

X
- Definition The average percentage points added to the reference rate to compute the variable rate on the group of interest rate derivatives. + References No definition available. + Details
Name: | us-gaap_DerivativeAverageBasisSpreadOnVariableRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The percentage points added to the reference rate to compute the variable rate on the interest rate derivative. + References No definition available. + Details
Name: | us-gaap_DerivativeBasisSpreadOnVariableRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Fixed interest rate related to the interest rate derivative. + References No definition available. + Details
Name: | us-gaap_DerivativeFixedInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Nominal or face amount used to calculate payment on derivative. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1B -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5580258-113959 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (d) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5579245-113959 + Details
Name: | us-gaap_DerivativeNotionalAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition Variable interest rate in effect as of the balance sheet date related to the interest rate derivative. + References No definition available. + Details
Name: | us-gaap_DerivativeVariableInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

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

X
- Definition Term of the interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | yorw_DebtInstrumentTermOfVariableRate
Namespace Prefix: | yorw_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of variable interest rate paid by the counterparty on the notional amount of the interest rate derivative. + References No definition available. + Details
Name: | yorw_DerivativePercentageOfVariableInterestRate
Namespace Prefix: | yorw_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Net payment rate on interest rate derivative with the counterparty for the period. + References No definition available. + Details
Name: | yorw_NetPaymentRateOnSwaps
Namespace Prefix: | yorw_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The potential amount payable to the interest rate swap counter party due to certain violations of the terms and conditions of the swap agreement. + References No definition available. + Details
Name: | yorw_PotentialPaymentToCounterparty
Namespace Prefix: | yorw_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_InterestRateSwapMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=yorw_VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_LondonInterbankOfferedRateLIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |