Best Way to Compare CD Rates with Different Maturity Dates?

With [long-term CD rates beginning to decline](https://www.marketwatch.com/story/its-time-to-start-locking-in-cds-are-hitting-peak-interest-rates-and-you-dont-want-to-miss-your-chance-2573bc84), I’m trying to compare the following information.

Let’s pretend I have $10k and I want to compare between two different maturity dates. This is not emergency money, so holding it long term with a bank is ok. I have seen a 24-month rate for as high as 5.39% (Merchants Bank Indiana) and a 60-month rate for 4.50% (Barclays).

Compound interest makes this a challenge, so how do I know which is the better investment? Thanks in advance.