Bug. is_date_closed() should be performed before is_date_in_fiscalyears().