If you’re one of the millions of Americans who will lose valuable deductions in 2018 thanks to the Republican tax-cut plan, you still have a few days left to take advantage of these tax breaks for your 2017 taxes.

Many folks who itemize this year won’t do so in 2018, thanks in large part to the loss of many deductions and the near-doubling of the standard deduction. For them, these money-saving steps are especially worth taking.

Here’s a rundown of last-minute moves you can make. 

Prepay Your Property Taxes

The new tax law puts a $10,000 limit on the amount of state and local taxes you can deduct on your federal tax return. That cap applies to a combination of your property taxes and either the state income tax or sales taxes you paid. 

If you expect to pay more than $10,000 in property taxes in 2018, you may be able to prepay all or a portion of it now and have it count toward your 2017 taxes in some limited circumstances. Here are some guidelines to help you figure out whether you qualify:

• Your state, county, and municipality have to agree to let you do it. On Wednesday, New Jersey Governor Chris Christie ordered municipalities to credit prepaid 2018 property taxes. Last week New York Governor Andrew Cuomo signed an emergency executive order permitting local governments and school districts to estimate and mail residents’ 2018 tax bills before year-end. 

On a local level, though, the reality may be more complicated. Residents of New York’s Westchester County—among the most highly taxed counties in the nation—can’t pay their county taxes in advance.

“There is no way to do this responsibly by the end of the year, given all of the laws that the county must follow under Westchester’s charter and the U.S. tax code, as well as a host of other variables and unknowns,” the county says on its website. Some individual towns in the county are letting residents prepay that portion of their tax bill, though.

• You have to have the tax bill or assessment. The IRS says you can prepay only the portion of your property tax that already has been billed or assessed. Residents of Cook County, Ill., for instance, already should have in hand their bill covering property tax for the first half of 2018. They can’t pay taxes for the other half of the year, though.

If you don’t have a copy of your bill, call your your county or municipality’s tax office or check its website to locate your property. You may be able to pay that bill online and avoid lengthy lines. 

• Your bank has to let you do it. If your bank pays your property taxes out of escrow, you typically have to contact the institution to request a prepayment. Keep in mind that at this late date, you may be out of luck reaching the bank or getting the process in motion.

For instance, Chase Home Lending, based in New York City, is no longer able to process new requests, says spokeswoman Erin Donar. But customers can make the prepayment themselves, directly with the local taxing authority.

“If they provide proof of payment to us, we can reimburse them,” Donar says. She added that she did not at this time have specifics as to how customers should provide proof of payment or what form the reimbursement would take.

Pay 2017 Estimated State Income Taxes

The new law doesn’t let you proactively prepay your 2018 state income taxes in order to deduct them for 2017.

But if you normally pay quarterly estimated 2017 federal and state taxes in January and April, you can prepay those before year-end and get the benefit on your 2017 tax return. Many Social Security recipients who have additional income could qualify for this gambit. So could owners of small businesses. 

“We’re telling our clients to do it,” says Rob Seltzer, a CPA in Los Angeles.

Boost Your Charitable Giving

Charitable donations are still tax-deductible in 2018, but they won’t be worth as much to people who will no longer be itemizing. If that’s a possibility for you, consider upping your donations now. Check the timing of your donations to be sure they’ll count for 2017.

You might consider using a donor-advised fund, which lets you donate money now and determine the recipient charities later, suggests financial adviser Jeff Fishman, founder and president of JSF Financial in Los Angeles. “Think of it as a charitable ‘piggy bank,’” Fishman says. 

More on Taxes

Remember that cash isn’t the only way to donate, says Frank Baglieri, a founding partner at Murphy, Miller & Baglieri, a Glen Rock, N.J., accounting, tax, and consulting firm. “It’s also a good time to donate unused items,” he says. “Just be sure to keep good records.”

You can use tax software or go to the websites of Goodwill and Salvation Army to determine the value of donated items worth less than $500. Items of more value require professional valuations, according to the IRS.

Make January Mortgage Payment Now

Mortgage interest on your current residence is still deductible under the new law. But if you don’t expect to itemize next year, you might as well make your January payment now to get the deduction, Seltzer says. 

Do the same with the January payment on a home equity line of credit or loan. And start thinking now about how to pay off that money faster. The new law doesn’t grandfather in deductibility of interest on these types of loans, whether new or existing. 

Pay for Tax Help, Employee Expenses Now

Various miscellaneous expenses, including fees for tax preparation and financial advice, legal fees, union dues, and unreimbursed employee expenses won’t be deductible in 2018. For 2017, you can still deduct anything in that category that exceeds 2 percent of your adjusted gross income. 

Check Schedule A of your 2016 tax return to determine what miscellaneous expenses you paid last year, and prepay as many of those items as possible now, recommends Mike Williams, an estate planning and tax attorney based in the Philadelphia office of the Schnader Harrison Segal & Lewis law firm. 

“We have been telling clients to pay outstanding invoices now,” Williams says. “And we’ve asked the investment banks that work with our clients to advance their fees. Tax advice, legal fees—to the extent that you can pay them early, you should.”

Mind the AMT

Keep in mind that any of these moves can backfire if you expect to be subject to the alternative minimum tax for 2017. That parallel taxation system penalizes individuals within certain income bands for having too many deductions. Increasing deductions could merely mean paying more of the AMT.

“If you’re going to be subject to the AMT, it’s probably not worth the trouble and one should likely forgo the deductions now,” Fishman says. (The new tax law makes far fewer people subject to the AMT for 2018 and beyond.)

Seltzer makes the case that prepaying property taxes may still be worthwhile for some AMT-prone clients. “At least you will get the deduction on your state return,” he says. 

A California resident who prepays $10,000 in property taxes at the end of this year could get a benefit of about $1,000 on his or her 2017 state return, he explains. “If they paid that $10,000 in 2018, they would get zero benefit,” he adds. 

The lesson is to crunch the numbers as much as possible between now and year-end, says Mildred Carter, senior federal tax analyst at Wolters Kluwer, a tax information publisher based in Riverwoods, Ill. “You may get an idea by looking at your previous year’s tax return,” she says. “Or check with your accountant. He or she would be able to tell you if it makes sense to do.”