If you want a fast, clean math effect that feels like mind reading, this date-and-time calculator trick is a great one. A spectator thinks of a date and a time, follows simple calculator steps, and gives you one final number. From that number alone, you can reveal the month, day, hour, and minute.
Date & Time Magic Calculator
Use this tool to generate the final “magic number” from a chosen date and time, or decode someone’s final number to reveal what they entered.
Performance tip: Let your spectator do this privately on their own phone so it feels impossible.
Decode a Spectator’s Final Number
How the trick works
The effect combines a classic birthday calculator trick with a clean time extension. The spectator starts with month and day using a sequence that secretly compresses the date into MMDD. Then they multiply by 24, add hour, multiply by 60, and add minute. Their final value locks in all four pieces of information.
Quick spectator instructions
- Enter your month number (January = 1, February = 2, etc.).
- Multiply by 5, add 6, multiply by 4, add 9, multiply by 5.
- Add the day of the month, then subtract 165.
- Multiply by 24 and add the hour (24-hour time).
- Multiply by 60 and add the minute.
- Tell the performer only the final number.
Example performance
Suppose someone chooses June 14 at 21:37. After the steps above, the final number is 885457. A trained performer decodes it backward:
- Minute = remainder when dividing by 60 → 37
- Remove minute, divide by 60 → gives a number ending with hour
- Hour = remainder when dividing by 24 → 21
- Remove hour, divide by 24 → now you have
MMDD - Day = last two digits → 14
- Month = remaining leading digits → 6 (June)
Why the math is reliable
Part 1: Date encoding
The expression (((((M × 5 + 6) × 4 + 9) × 5) + D) − 165) simplifies to 100M + D. That means month and day are packed together as a four-digit style value (MMDD without leading-zero formatting concerns).
Part 2: Time embedding
Once you have MMDD, applying ((MMDD × 24 + H) × 60 + Min) stores hour and minute in a reversible way. Because hours run 0–23 and minutes 0–59, modulus arithmetic cleanly extracts each part.
Tips to make this feel like real mind reading
- Ask the spectator to hide their screen while calculating.
- Talk about intuition or “numerical fingerprints” while they work.
- Pause before revealing each piece: minute, hour, day, month.
- Reveal in reverse order for drama, then finish with month name.
- Practice mental decoding with a few random numbers before performing live.
Common questions
Do I need 24-hour time?
Yes. It keeps decoding unambiguous. For PM times, add 12 to the hour (except 12 PM).
Can this include the year too?
Absolutely, but the arithmetic gets larger and less elegant for casual performance. Month/day/time is usually the sweet spot for speed and impact.
Is this good for classrooms?
Definitely. It’s a fun entry point into algebra, modular arithmetic, encoding, and reverse operations.