def calculate_pay(self):
        total_pay = 0
        for time_card in self.__time_cards:
            total_pay += time_card.calculate_daily_pay(self.__hourly_rate)

        if total_pay > 0:
            weekly_dues = float(Employee.get_weekly_dues(self))
            total_pay -= weekly_dues
            self.total_payment(total_pay)
        return(total_pay)
    def calculate_pay(self):
        total_pay = 0
        for receipt in self.__receipt_list:
            total_pay += receipt.get_sale() * self.__commission_rate

        total_pay += self.__salary / 12
        weekly_dues = Employee.get_weekly_dues(self)
        total_pay -= float(weekly_dues)

        self.pay(total_pay)
        return total_pay