Best Way to Compare CD Rates with Different Maturity Dates?

With [long-term CD rates beginning to decline](, 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.