Rates of Convergence of Numerical Methods for Controlled Regime-Switching Diffusions with Stopping Times in the Costs · Study