Retirement tax questions

We sold a house, but the capital gains was excluded because it was under the $500,000 joint limit.  No social security, but $5,004 in interest.  I read the earned income credit increased to $5,000 in 2024, but still can't get to the $15,004 amount.  TT doesn't show how it was calculated.