A Québécois man missed out on winning a lottery jackpot worth $21.4 million (27 million Canadian dollars) because his winning ticket printed out seven seconds too late.

A Canadian court dismissed Joel Ifergan’s appeal Thursday after the almost-but-not-quite-winner said that he should still be eligible to win half the prize money.

Ifergan bought two Super 7 lottery tickets at 8:59 p.m. for the May 23, 2008 jackpot. But while one ticket was eligible for the 23rd, the second was printed out after the clock struck nine, and only counted for the May 30 jackpot. And as fate would have it, the ticket marked for the 30th had the winning numbers for the 23rd.

Ifergan blames Loto-Quebec’s ten second processing delay.

After spending years and at least $80,000 on the case, Ifergan tells CTV, “Yes, it cost me a lot of money, but it also consumed me for seven years.”

[CTV]

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.