Follow CBSMIAMI.COM: Facebook | Twitter

MIAMI (CBSMiami/AP) -— Wells Fargo says a company mistake contributed to hundreds of foreclosures because it miscalculated customers’ eligibility for mortgage modifications.

READ MORE: NW Miami-Dade Hit-&-Run Crash Leaves 1 Dead, 5 Injured

Wells Fargo said in a filing Friday the error caused about 625 customers to be denied, or not offered, loan modifications they otherwise qualified for.

Foreclosures were completed in about 400 of the cases.

The customers had been using federal programs that helped families at risk of losing homes. Spokesman Tom Goyda says there’s no breakdown of where the foreclosures occurred.

READ MORE: COVID In Florida: 4,237 New Cases, 33 Deaths Reported On Monday

The error in the bank’s underwriting tool lasted from 2010 until it was fixed in late 2015, an internal review found.

The bank said it set aside $8 million this year to help the affected customers.

With its main corporate office in San Francisco, the bank employs thousands in Charlotte.

MORE NEWS: Miguel Díaz-Canel Officially Chosen To Lead Cuba's Communist Party

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)