adjust function

Compute adjusted dates