Definition
Tatpurush Samas is done on the basis of Vibhakti.
General Formula
A kind of general rule or formula is: Word 1 + Word 2 = Mool(Word1)Word2
There are seven Vibhaktis, so the samas will be according to those respective samas.
Examples
Backlinks
Samas