def _generate_invoices(self):
        """
        Create invoices for both autopayable and non-autopayable subscriptions
        """
        # invoice date is 2 months before the end of the subscription (this is arbitrary)
        invoice_date = utils.months_from_date(self.subscription.date_start, 2 - self.subscription_length)
        tasks.generate_invoices(invoice_date)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/accounting/tests/test_autopay.py/TestBillingAutoPay._generate_invoices/swapped operands of `-`