Had God decided to punish the people on the spot for their wrongdoings, He would have left no one on earth. Instead, He lets them go through their lives (which its lengths is already determined in advance.) When Their time comes, they can neither delay nor advance it even for an hour.