depending on how ...; depending on the way ...
Attaches to the -masu stem of a verb to express that the outcome varies according to the manner of doing something.
Depending on how you do it, it might finish sooner.
Depending on how you look at it, this situation isn't so bad either.