とするとところ
to suruto tokoro

Suru Verb
Conjunction

Indicates being about to do something of とすると

1. About to; In the process of; On the verge of

Imminent Aspect