When Does Total Internal Reflection Takes Place