where M is money (in cents) and n is number of days.

So sub n = 34 and solve for M.

Sub M = (however many cents are in one million dollars) and find the first integer valuem of n such that you've got at least a million dollars. Trial and error might be the best appoach here ..... Hint: From the first part you know n < 34 ......)