<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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,
        )