The most basic cost per hire formula is:
Internal Costs + External Costs / Number of Hires.
Time to hire adds to your internal costs. Think about the time each person in the recruiting process spends, as well as how long that vacant position is not contributing to the company.