The three numbers
Michele Mosca, a quantum cryptography researcher at the University of Waterloo, set out the test in a 2015 paper. He wrote it as x + y > z, where each letter is a number of years.
- x is the shelf life, how long the data must stay secret.
- y is the migration time, how long it takes to move to quantum-safe tools.
- z is the time until a quantum computer can break today's public-key encryption.
If x + y is larger than z, some data will still need protection after the encryption protecting it has failed. Mosca's paper notes that x depends on the application, from zero years for data that only matters in real time to decades for health records, trade secrets and national security data.
Try it
Enter your own shelf life and migration time. The table tests them against several possible years for Q-Day, because nobody knows z.
The scenarios are not forecasts. They span the range from just after the earliest case on our clock to a date beyond the government deadlines, so you can see how much margin you have in each.
A worked example
Suppose a hospital keeps patient records for 25 years and expects migration to take 6 years. That gives x + y = 31. A quantum computer would have to be at least 31 years away for the hospital to be safe. The experts in the Global Risk Institute's 2025 report gave better than even odds of a code-breaking machine within 15 years, so that is a poor bet. The records are already late to migrate, which is exactly the case harvest now, decrypt later targets.
Now take a card payment authorised today. The shelf life x is close to zero, because the data has no value once the transaction settles, so even a long migration passes the test. The same company can be safe on one system and late on another, which is why the test is run per data set and not per organisation.
Choosing z
This is the hard part. In the Global Risk Institute's 2025 report, 26 experts gave an average chance of 28 to 49 percent that a code-breaking machine exists within 10 years, and 51 to 70 percent within 15. The numbers sit well short of certainty in either direction. Mosca himself wrote in 2015 that he estimated a one-in-two chance of breaking RSA-2048 by 2031, which is a reminder that these estimates are personal judgements.
For long-lived data, plan against the early scenarios and not the average. The cost of finishing early is some wasted effort. The cost of finishing late is a breach that cannot be undone. The Q-Day overview lists the deadlines that governments have chosen.
Estimating y honestly
Migration time is usually longer than teams expect. NIST's October 2026 transition report notes that earlier cryptographic transitions took 10 to 20 years. Your own y includes finding where cryptography is used, waiting for suppliers, testing, and replacing hardware that cannot be updated. Our guide to post-quantum cryptography describes the standards you would move to.