Capital gains

Hey there I had asked a question earlier and have done some further research and I liked to ask

if I am over 65 and I sold a house in 2021 and bought a house in 2021 then sold it in 2022 due to hurricane

Ian.  When and what percentage of capital gains will I have to pay if my income is under 40,000 for 2024?