calculate due date if there are all kinds of frames