calculate due date if there are a dates frame