Answer is 183 months using an annuity immediate (First payment starts 1 month from now). Go here for the math work and proof behind that answer:

Annuity Immediate Present Value

Use the Calculate Present Value button. .5 for interest rate, 2500 for payment, and 183 for periods. If you change periods to 184 and hit calculate again, you can see the PV breaches the 300k limit, therefore, your answer is 183 months. Be advised this assumes no mortality for the collection period, meaning husband and wife are assumed to live through this period with 0% chance of death.

If you want the annuity due calc (first payment starts immediately), I can provide that too. It's on the finance page of my site, but I found a bug today that I will fix later tonight in the due lesson, and then I can provide it if you want.

The answer for an annuity due would be 182 months. All that is is (1 + i) times the annuity immediate present value. So using the annuity immediate calculator and plugging in 182 for the months, and then multiplying by 1.005 would stay under 300k, but the next month up, 183, would not.

Let me know if you have questions.