
class job:
    def __init__(self, name, value = 0):
        self.name = name
        self.value = value
        self.categorie_list = []
    
    

 
class categorie:
    def __init__(self, name):
        self.name = name
        self.amount = []
        self.date = []
        self.paid = []
        self.paid_date = []
        
    def add(self, amount, date):
        self.amount.append(amount)
        self.date.append(date)

    def add_paid(self, amount, date):
        self.paid.append(amount)
        self.paid_date.append(date)

    def total(self):
        total_amount = 0
        for money in self.amount:
            total_amount += money
        return total_amount

    def total_paid(self):
        total_amount = 0
        for money in self.paid:
            total_amount += money
        return total_amount
    def __str__(self):
        return f"Name: {self.name} \ntotal: {self.total()} \nowe: {self.total() - self.total_paid()}"
    
        