def get_time_left(self):
        if self.has_no_conversion: return MAX_PAY_TIME
        return max(0, MAX_PAY_TIME - (NOW() - self.created_at).total_seconds())
        

# EOF
dataset/ETHPy150Open coinkite/coinkite-real-time-invoice/models.py/MyInvoice.get_time_left/original