insertion sort basic computation steps
You asked why the "3" is there in that equation.  Here's the explanation.

$t_i$ counts the number of iterations of the inner loop, for a particular value of $i$.  Each iteration executes 3 instructions (3 steps).  Therefore, the total number steps of computations consumed by the inner loop, for a particular value of $i$, is $3 \times t_i$.