although the _compute_date_deadline function worked perfectly, the _inverse_date_deadline was not being trigged when I changed the date on the calendar. After doing that, the inverse function worked ...