Fixed calcdeadlines to use consistent objects. had some unixTime and DateTime confusion