The indentation of the computation of date_deadline was incorect leading to a deadline only getting compute when the base date was depending on a previous activity.
8285630ad2
edd586002e