depending on ...
「如何で」 has another reading with different meanings.
how
not going (well); not proceeding (as one wishes)