Greg Gianforte, the Republican candidate for Montana’s open House seat, stands to get tax cuts worth nearly $800,000 a year if the House health care bill becomes law, according to a new analysis.

The American Health Care Act, as the Republican bill that passed the House of Representatives is known, repeals the two tax hikes on higher earners that the Affordable Care Act used to fund expansion of insurance coverage: a 3.8 percent tax on net investment income and a 0.9 percent increase in the Medicare Hospital Insurance tax. Both taxes apply to individuals making $200,000 a year or more, and married couples making $250,000 a year or more.

Based on Gianforte’s average yearly investment and wage income from 2005 to 2014, his annual tax bill would go down $785,413 if the AHCA passed, according to an analysis released Friday by the Center for American Progress Action Fund and Tax March, an organization backed by labor unions and progressive groups.

CAP Action Fund senior fellow Seth Hanlon, a tax attorney who worked for former President Barack Obama, conducted the analysis.

Hanlon calculated the size of the tax cuts based on the income reported in tax returns for Gianforte and his wife Susan from 2005 to 2014. Gianforte released them as part of his failed bid for governor of Montana in 2016.

Gianforte, 56, founded two successful software companies, including RightNow Technologies, which he sold to Oracle for $1.5 billion in 2011.

He and his wife made, on average, over $20 million a year in investment income and $1.6 million a year in ordinary wages over the 10-year period for which Gianforte disclosed his earnings. Assuming he continued to maintain this average going forward, he would get a $772,981 annual tax break from repeal of the net investment income tax and another $12,432 from elimination of the Medicare Hospital Insurance surtax.

Shane Scanlon, a spokesman for Gianforte’s campaign, did not respond to a request for comment on the law’s financial benefits for the GOP candidate.

Story continues

Greg Gianforte, the Republican candidate for Montana’s open House seat, stands to benefit financially from the American Health Care Act. (Photo: William Campbell/Getty Images)

Gianforte is hoping to fill a seat that Ryan Zinke vacated when Trump picked him to become interior secretary.

He is locked in an increasingly close race with Democrat Rob Quist, 69, a folk music sensation in the state who is running on a populist platform of protecting public lands and making health care more affordable. The special election is this coming Thursday.

In the past two weeks, Quist has made an issue out of Gianforte’s murky stance on the Republican health care law, which the nonpartisan Congressional Budget Office estimated would deny at least 24 million Americans health insurance. The law would have a significant impact in Montana, where the state’s uninsured rate dropped from 20 percent in 2012 to 7.4 percent in 2016 thanks to Obamacare.

Gianforte told Republican-leaning lobbyists in a private call on May 5 that he was “thankful” that the House had passed the AHCA, according to The New York Times. He has since walked back the comment, telling Montana Public Radio that he would not have voted for the law, because “we don’t have enough data yet” to determine if it would bring down premiums, protect people with pre-existing conditions and maintain access to coverage in rural communities.

The latter comments have not deterred Quist in his efforts to paint Gianforte as an unreliable defender of Montanans’ health care. Quist raised $550,000 in the four days following the Times report ― part of a more than $5 million haul that has come from over 200,000 individual donors.

Quist’s campaign has plowed some of that cash into ads hitting Gianforte for voicing support for the law.

The campaign’s two closing ads focus on the AHCA’s rollback of federal protections for people with pre-existing medical conditions. The law would allow states to opt out of community rating regulations in Obamacare that require insurers to provide coverage at regional rates for people in the individual insurance market, rather than charge much higher premiums for people with past illness or other health histories the insurance industry has called “pre-existing conditions.” Those states that choose to opt out would have to create high-risk pools to cover those people, but conservative and liberal experts alike believe the federal funding for those pools would be woefully inadequate.

In the ads, Quist discusses his own pre-existing condition from gallbladder surgery, claiming he is one of an estimated half of Montanans who have what would be considered a pre-existing condition.

Quist struggled with medical debt for years after the surgery, which was botched and left him unable to afford insurance for a time due to a pre-existing condition. He has said that he supports single-payer health insurance because he does not want people to go bankrupt trying to pay for health care.

The CBO has announced that it will release updated estimates of the Republican health legislation’s impact this coming Wednesday. The analysis is expected to show that the current version of the House bill would deprive more people of insurance than the earlier iteration, which preserved more features of Obamacare.

Polling in the Montana House race has been sparse, but the available figures suggest Quist has gained ground against Gianforte.

A May poll that a Democratic super PAC commissioned has Quist trailing Gianforte by 6 points, compared with an April survey showing him down some 15 points. After initially ignoring the race, the national Democratic Party has taken a greater interest in the past few weeks, with the Democratic Congressional Campaign Committee tripling its investment to $600,000 this month.

The Republican Party is apparently also taking Quist seriously. President Donald Trump’s eldest child, Donald Trump Jr., returned to Montana last week to campaign for Gianforte a second time, and Vice President Mike Pence stumped for him last Friday.

Apparently the high-profile visits were not enough to stem Quist’s momentum. On Tuesday, influential conservative writer Erick Erickson tweeted that internal Republican polls show Quist made gains in the race over the weekend.

Sen. Bernie Sanders (I-Vt.), whom Quist backed in the 2016 presidential primary, is speaking at events for Quist in Missoula, Butte and Billings on Saturday and in Bozeman on Sunday. Quist’s campaign had to move the Missoula rally to the 7,500-capacity Adams Center arena because of the high level of interest in attending.

The story has been updated with the CBO’s announcement that it will soon release new estimates for the American Health Care Act.

Also on HuffPost

Love HuffPost? Become a founding member of HuffPost Plus today.

Taking Security Seriously

Sen. Richard Blumenthal (D-Conn.) talks with Sen. Elizabeth Warren (D-Mass.) before the start of a Senate Armed Services Committee hearing concerning the roles and responsibilities for defending the nation against cyberattacks, on Oct. 19, 2017.

With Liberty And Justice...

Members of Code Pink for Peace protest before the start of a hearing where U.S. Attorney General Jeff Sessions will testify to the Senate Judiciary Committee in the Hart Senate Office Building on Capitol Hill on Oct. 18, 2017. Committee members questioned Sessions about conversations he had with President Donald Trump about the firing of former FBI Director James Comey, the Deferred Action for Childhood Arrivals (DACA) policy, the ongoing investigation about Russian interference in the 2016 presidential election and other subjects.

Whispers

Sen. Richard Burr (R-N.C.), right, speaks with Sen. Mark Warner (D-Va.) before a confirmation hearing for Christopher Sharpley, nominee for inspector general of the CIA, on Oct. 17, 2017.

Not Throwing Away His Shot

Lin-Manuel Miranda, creator of the musical "Hamilton," makes his way to a meeting of the House Appropriations Subcommittee on Interior, Environment and Related Agencies in the Rayburn Office Building during a round of meetings to urge federal funding for the arts and humanities on Sept. 13, 2017.

Medicare For All

Sen. Bernie Sanders (I-Vt.), center, speaks on health care as Sen. Richard Blumenthal (D-Conn.), left, and Sen. Kirsten Gillibrand (D-N.Y.), right, listen during an event to introduce the Medicare for All Act on Sept. 13, 2017.

Bernie Bros

Supporters of Sen. Bernie Sanders (I-Vt.) pack his office on Sept. 8, 2017. Members of the "Draft Bernie for a People's Party" campaign delivered a petition with more than 50,000 signatures to urge the senator to start and lead a new political party.

McCain Appearance

Sen. John McCain, second from left, leaves the Capitol after his first appearance since being diagnosed with cancer. He arrived to cast a vote to help Republican senators narrowly pass the motion to proceed for the replacement of the Affordable Care Act on July 25, 2017.

A Narrow Win

Senate Majority Leader Mitch McConnell, center, speaks alongside Sens. John Barrasso, left, John Cornyn, right, and John Thune, rear, after the Senate narrowly passed the motion to proceed for the replacement of the Affordable Care Act on July 25, 2017.

Kushner Questioning

Jared Kushner, White House senior adviser and son-in-law to President Donald Trump, arrives at the Capitol on July 25, 2017. Kushner was interviewed by the House Intelligence Committee in a closed-door meeting about contacts he had with Russia.

Hot Dogs On The Hill

Rep. Frank Lucas (R-Okla.) prepares a hot dog during the American Meat Institute's annual Hot Dog Lunch in the Rayburn Office Building courtyard on July 19, 2017.

And Their Veggie Counterparts

Rep. Jackie Speier (D-Calif.) visits the People for the Ethical Treatment of Animals veggie dog giveaway on July 19, 2017, countering a National Hot Dog Day event being held elsewhere on Capitol Hill.

Poised For Questions

Callista Gingrich, wife of former House Speaker Newt Gingrich, waits for a Senate Foreign Relations Committee hearing on her nomination to be the U.S. ambassador to the Vatican on July 18, 2017.

Speaking Up

Health care activists protest to stop the Republican health care bill at Hart Senate Office Building on Capitol Hill on July 17, 2017.

In The Fray

Sen. Ted Cruz (R-Texas) speaks to members of the media after announcing the revised version of the Senate Republican health care bill on Capitol Hill on July 13, 2017.

Anticipation

Christopher Wray is seated with his daughter Caroline, left, as he prepares to testify at a Senate Judiciary Committee confirmation hearing on his nomination to be the next FBI director on July 12, 2017.

Up In Arms

Health care activists protest to stop the Republican health care bill at Russell Senate Office Building on Capitol Hill on July 10, 2017.

Across A Table

Speaker of the House Paul Ryan (R-Wis.) meets with South Korean President Moon Jae-in on Capitol Hill on June 29, 2017.

Somber Day

House Minority Leader Nancy Pelosi (D-Calif.) speaks about the recent attack on the Republican congressional baseball team during her weekly press conference on Capitol Hill on June 15, 2017.

Family Matters

Rep. Joe Barton (R-Texas), right, and his sons, Jack, 10, and Brad, arrive in the basement of the Capitol after a shooting at the Republican baseball practice in Alexandria, Virginia, on June 14, 2017.

A Bipartisan Pause

Rep. Joe Barton (R-Texas), right, coach of the Republican congressional baseball team, tells the story of the shooting that occurred during a baseball practice while he stands alongside Rep. Mike Doyle (D-Pa.), left, a coach of the Democratic congressional baseball team on June 14, 2017.

Hats On

Rep. Chuck Fleischmann (R-Tenn.) reacts about the shooting he was present for at a Republican congressional baseball practice in Alexandria, Virginia, as he speaks with reporters at the U.S. Capitol in Washington on June 14, 2017.

Public Testimony

U.S. Attorney General Jeff Sessions is sworn in to testify before a Senate Intelligence Committee hearing on Capitol Hill on June 13, 2017.

Comey's Big Day

Former FBI Director James Comey testifies before a Senate Intelligence Committee hearing on Russia's alleged interference in the 2016 U.S. presidential election on Capitol Hill on June 8, 2017.

Conveying His Point

U.S. Director of National Intelligence Daniel Coats testifies at a Senate Intelligence Committee hearing on his interactions with the Trump White House and on the Foreign Intelligence Surveillance Act on June 7, 2017.

Selfie Time

Vice President Mike Pence takes a selfie with a tourist wearing a "Make America Great Again" hat inside the U.S. Capitol rotunda on June 6, 2017. The vice president walked through the rotunda after attending the Senate Republican policy luncheon.

Budget Queries

Office of Management and Budget Director Mick Mulvaney testifies before the House Budget Committee about President Donald Trump's fiscal 2018 budget proposal on Capitol Hill on May 24, 2017.

Flagged Down By Reporters

Sen. Richard Burr (R-N.C.), chairman of the Senate Intelligence Committee, leaves a closed committee meeting on Capitol Hill on May 24, 2017. The committee is investigating possible Russian interference in the U.S. presidential election.

Shock And Awe

House Minority Leader Nancy Pelosi (D-Calif.) and Sen. Bernie Sanders (I-Vt.) hold a news conference on the release of the president's fiscal 2018 budget proposal on Capitol Hill on May 23, 2017.

Seeing Double

Sen. Dianne Feinstein (D-Calif.) arrives in the Capitol for the Senate Democrats' policy lunch on May 16, 2017.

Honoring Officers

President Donald Trump speaks at the National Peace Officers Memorial Service on the West Lawn of the Capitol on May 15, 2017.

Whispers

Senate Intelligence Committee Chairman Richard Burr (R-N.C.), right, and ranking member Sen. Mark Warner (D-Va.) talk during a hearing with the heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill on May 11, 2017.

Skeptical

Former acting Attorney General Sally Yates arrives to testify before a Senate Judiciary Committee hearing on Russian interference in the 2016 U.S. election on Capitol Hill on May 8, 2017.

Differing Opinions

Rep. Glenn Grothman (R-Wis.) gives a thumbs-up to protesters on the East Front of the Capitol after the House passed the Republicans' bill to repeal and replace the Affordable Care Act on May 4, 2017. The protesters support the ACA.

Real Talk

United States Naval Academy Midshipman 2nd Class Shiela Craine (left), a sexual assault survivor, testifies before the House Armed Services Committee's Subcommittee on Military Personnel with (2nd from left to right) Ariana Bullard, Stephanie Gross and Annie Kendzior in the Rayburn House Office Building on Capitol Hill on May 2, 2017. Kendzior, a former midshipman, and Gross, a former cadet, were both raped twice during their time at the military academies. The academy superintendents were called to testify following the release of a survey last month by the Pentagon that said 12.2 percent of academy women and 1.7 percent of academy men reported experiencing unwanted sexual contact during the 2015-16 academic year.

In Support Of Immigrants

Congressional Hispanic Caucus Chair Rep. Michelle Lujan Grisham (D-N.M.), center, is joined by dozens of Democratic members of the House of Representatives to mark "Immigrant Rights Day" in the Capitol Visitor Center on May 1, 2017 in Washington, D.C. The Democratic legislators called on Republicans and President Donald Trump to join their push for comprehensive immigration reform.

This article originally appeared on HuffPost.