An Extension of Itô's Formula for Anticipating Processes