CHARLOTTE, N.C. (AP) — Wells Fargo says a company mistake contributed to hundreds of foreclosures because it miscalculated customers’ eligibility for mortgage modifications.

The bank 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.

READ MORE: Jeffco Public Schools Aims To Offer Flexibility With Remote Learning Next Fall

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.

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

READ MORE: COVID In Aurora: Signs For Vaccine Become Sticking Point Between Clinic & City

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: Douglas County Schools To Bring Middle & High School Students Back After Spring Break

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)