how long does it take for a cavity to form