Australia’s BHP said the leave and allowance ‘errors’ will cost the company up to $280m.