What is the formula for Cell ID (ECI) in LTE networks?

Hello dears… any change in calculation for 5G NR? What is the formula for Cell ID (NCI) in 5G NR networks?