def get_amount_arrears_balance(self, billing_cycle):
        """Get the balance of to_account at the end of billing_cycle"""
        return self.to_account.balance(
            transaction__date__lt=billing_cycle.date_range.lower,
        )
Get the balance of to_account at the end of billing_cycle