def get_program_time_budget(self):
    td = self.estimated_duration - self.get_program_duration()
if td.days < 0:
    return '-' + str(datetime.timedelta() - td)
return str(td)
Python timedelta issue with negative values