If you didn't know already, the lottery is one of the worst ways to gamble. Lotto 6/49 and Lotto Max generally return less than 50 cents per dollar you put in over the long run.
Check out the EV calculator to compute an estimated expectation for any given jackpot.