Fix/def calculate closed date