Nukes height calculation code