Text this: A simplified approach to estimate the lifetime of structures subjected to earthquakes