Tocolytics are generally used when there is a risk of preterm birth, which is defined as labor occurring before 37 weeks of gestation. They are typically administered between 24 and 34 weeks of gestation. The goal is to delay delivery for at least 48 hours to allow for the administration of corticosteroids that accelerate fetal lung maturity.