Calculate date from another time