How charts are calculated
How Mingli calculates BaZi, Zi Wei Dou Shu, I Ching and the Chinese almanac: birth-time correction, solar terms and day change, strength and favourable elements, date-picking rules, and how we check the results.
Updated: 2026-11-08
Our name, Mingli (明理), means "seeing the reasons" and sounds the same as 命理, the Chinese word for this craft. That is the rule we work by: Chinese metaphysics, with the reasoning shown. So we keep calculation and interpretation apart. Charts, day-master strength, luck pillars, hexagrams and almanac entries are all computed by fixed rules, so the result is deterministic. AI only turns those results into plain language, and may cite only the chart facts the program supplies. These are the rules the calculation layer uses (rules version 2026.11-r5).
1. Birth-time correction
- Daylight saving time: the years Hong Kong, Taiwan and mainland China used DST are removed automatically from the IANA time-zone database.
- True solar time: corrected by default from the birthplace longitude and the equation of time; the chart shows how many minutes were corrected. It can be turned off in professional mode.
- Unknown birth hour: only the year, month and day pillars are cast, and every conclusion that would change with the hour is marked. Zi Wei Dou Shu needs an exact hour and is not cast without one.
2. BaZi (Four Pillars)
- The year pillar changes at Lichun (Start of Spring); the month pillar changes at the twelve solar "jie" terms, timed to the minute.
- Day change at 23:00 (start of the Zi hour). For births between 23:00 and 24:00, the chart also shows the "late Zi hour" alternative.
- Day-master strength: each heavenly stem scores 1; hidden stems in branches score 1, 0.5 and 0.3 (main, middle, residual), and the month branch counts 2.5×. If the day master's own side (companions + resource) holds 46% or more of the total, it is strong; 35% or less, weak; in between, balanced. Within 2% of a threshold it reads "balanced, leaning strong / weak".
- Favourable elements: supporting/restraining the day master first, plus seasonal adjustment (fire for winter births lacking fire, water for summer births lacking water). When the two disagree, both are shown.
- Special structures (follow, dominant, and possible stem transformations) are flagged as "favourable elements uncertain" rather than decided automatically; readings then do not rely on favourable elements.
- Luck pillars: forward for yang-year males and yin-year females, backward otherwise; the starting age counts three days to the nearest "jie" as one year. Without a gender, both directions are given.
- Symbolic stars (five in normal mode): Peach Blossom, Travelling Horse and Canopy from the year and day branch trines; Nobleman and Scholar from the day stem.
3. Zi Wei Dou Shu
San He school: Life and Body palaces, the fourteen major stars, the six lucky and six challenging stars, birth-year transformations, decade, minor limit, year and month periods, reading each palace together with its opposite and trine palaces. Transformations follow the common Quan Shu table; leap months split at the 15th day.
4. I Ching (Liu Yao)
- Casting uses server-side cryptographic randomness with true three-coin odds: old yang 1/8, young yang 3/8, young yin 3/8, old yin 1/8. The result is saved; reloading never recasts.
- Jing Fang Najia layout (eight palaces, self and other lines, six relatives, six spirits, hidden lines); the month by solar terms, the day by the caster's local date.
- Judgement follows Zeng Shan Bu Yi: useful-god strength, month break, day clash, void, moving lines, returning effects, advancing/retreating, repetition and reversal, three-harmony frames, six-clash and six-harmony hexagrams. It gives a tendency and a pace, never a specific date.
5. Almanac and date picking
- Do/avoid lists, the twelve day officers, Yellow/Black Path, clash and lucky hours follow the Xie Ji Bian Fang Shu system. Printed almanacs by different masters differ in places.
- Date picking first rules out year break, month break, the four separations and four endings, Yang Gong taboo days, days clashing the person's zodiac, and days where the event is listed under "avoid"; then requires the event under "do"; then ranks by Yellow Path day, matching day officer and auspicious stars. Every recommended and excluded day states its reason.
- For weddings it only filters possible days and never names a "best" wedding date.
6. How we check
- Solar terms: compared with the VSOP87 ephemeris for all twelve "jie" terms from 1950 to 2050; the largest difference is 52 seconds.
- Four pillars: an independent second implementation (ephemeris solar terms, Julian day numbers for the day pillar, standard stem formulas) agrees on 1,500 random birth moments.
- Luck pillars: direction and first pillar agree when recomputed independently; the start time stays within 14 days of the exact three-days-a-year ratio.
- Stars, transformations, taboo days: symbolic stars derived from the trines and twelve life stages; Nobleman and Scholar checked against the classic rhymes; transformations against iztro; Yang Gong days against published sources.
- Strength thresholds: two blind rounds of 100 charts each, judged from the pillars alone by two independent reviewers; on the charts where they agree, the system matches 87–91%.
7. Limits of AI readings
- Every conclusion may cite only facts that exist in this chart (for example "month pillar Ji Mao", "year 2026 Bing Wu"), and the facts can be opened on the page.
- Readings say "tends to", "suits", "is likely to" — never "destined" or "certain".
- No judgements on health, lifespan, disasters or lawsuits, no investment picks, no paid "remedies". If self-harm comes up, the reading stops and help lines are shown.
- Readings are written by AI, for entertainment and self-reflection only.