rework costs ai