how do scientists use rate which radioactive elements decay rocks

How do scientists use the rate at which radioactive elements decay in rocks?