A T piece must be placed opposite the point where you need the fluid.
To achieve that you need to add the length of the screw or insert that will disappear in the t to your pipe length leading to the cutoff.
If you want to determine the volume of water that will be diverted into the branch you need to give more detail. Pipe lengths, elevations, flows, discharges. pressures, material and class etc.
__________________
Never do today what you can put of until tomorrow - Student motto