Current building codes are intended to design to a 10% probability of collapse in the "Maximum Considered Earthquake", which is roughly a 2475-year event. The 2475-year event has a 2% chance of occurring during the (assumed 50 year) lifetime of a building.