Fixed minor bug in charge_overdue_equity function