What is the formula to calculate half life?

What is the formula to calculate half life?

However, the half-life can be calculated from the decay constant as follows: half-life = ln (2) / (decay constant). To measure the decay constant, we take a sample of known mass and measure the number of radioactive decays per second as a function of time.