The methods for years and months are recorded in the "Imperial Treatise on Harmonizing Times and Distinguishing Directions", while the daily method is found in the "Three Yuan Daily White Song" of the "Jade Box Record".
One White, Two Black, Three Jade, Four Green, Five Yellow, Six White, Seven Red, Eight White, and Nine Purple each guard a palace according to the Luoshu numbers: One White in Kan, Two Black in Kun, Three Jade in Zhen, Four Green in Xun, Five Yellow in the Center, Six White in Qian, Seven Red in Dui, Eight White in Gen, and Nine Purple in Li. The sequence of the Nine Stars also corresponds to Tanlang (Greedy Wolf), Jumen (Giant Gate), Lucun (Stipend), Wenqu (Artistic Star), Lianzhen (Judge), Wuqu (General), Pojun (Broken Army), Zuofu (Left Support), and Youbi (Right Support) — the seven stars of the Big Dipper, along with the two assistant stars Fu and Bi.
Each year, month, and day has a star entering the central palace, while the other eight stars distribute sequentially through Center, Qian, Dui, Gen, Li, Kan, Kun, Zhen, and Xun. The Year Star starts with One White in the Upper Yuan Jiazi year and counts backward year by year; the Month Star determines the starting star of the first month according to the Year Branch and shifts backward month by month; the Day Star starts with One White moving forward from the Jiazi day closest to the Winter Solstice, and starts with Nine Purple moving backward from the Jiazi day closest to the Summer Solstice, with each Yuan spanning sixty days, and the Three Yuan totaling one hundred and eighty days. For any given day, the chart remains identical for everyone.
Each of the Nine Stars is paired with a star of the Big Dipper:
- One WhiteWater · Tanlang (Greedy Wolf) · Tianshu · Kan ☵ palace north
- Two BlackEarth · Jumen (Giant Gate) · Tianxuan · Kun ☷ palace southwest
- Three JadeWood · Lucun (Stipend) · Tianji · Zhen ☳ palace east
- Four GreenWood · Wenqu (Artistic Star) · Tianquan · Xun ☴ palace southeast
- Five YellowEarth · Lianzhen (Judge) · Yuheng · Center palace
- Six WhiteMetal · Wuqu (General) · Kaiyang · Qian ☰ palace northwest
- Seven RedMetal · Pojun (Broken Army) · Yaoguang · Dui ☱ palace west
- Eight WhiteEarth · Zuofu (Left Support) · Dongming · Gen ☶ palace northeast
- Nine PurpleFire · Youbi (Right Support) · Yinyuan · Li ☲ palace south