Step 1 in writing the chemical formula for a compound involving calcium and nitrogen.

Calcium, Ca, belongs to Group IIA. It likes to form the Ca+2 ion.

Nitrogen, N, belongs to Group VA. It likes to form the N-3 ion.

Step 1:

Ca +2

N-3