Question: how is dbi gain calculated?
Answer: A reference dipole antenna is defined to have 2.15 dBi of gain. So converting between dBi and dBd is as simple as adding or subtracting 2.15 according to these formulas: dBi = dBd + 2.15. dBd = dBi - 2.15.