His job was to provide observation, and computation of the regularities in celestial phenomena, using the Islamic methods. His findings were used by Wang Chuna in the compilation of Yingtianli, which was completed in 963. The calculation, based on a 7-day week system similar to that in the Islamic calendar, was first adopted in this document, which was the most important occurrence in the Chinese history of calendrical methods.