Here's how to break down the name to understand the formula:
* Di means two, so there are two phosphorus atoms (P).
* Hepta means seven, so there are seven chlorine atoms (Cl).
Therefore, the formula is P₂Cl₇.