The calculation
dasha/vimshottari.ts, in short
const NAK = 360 / 27; const i = Math.floor(moon / NAK) % 27; // Moon's nakshatra, 0-based const lord = ORDER[i % 9]; // Ketu, Venus, Sun, Moon, Mars, Rahu, Jupiter, Saturn, Mercury const elapsed = (moon - i * NAK) / NAK; // fraction of the nakshatra traversed const balanceYears = (1 - elapsed) * YEARS[lord]; // birth_balance.remaining_years // then the next nine lords in order, each for its full YEARS[lord] // end = start + years × 365.25 days (no rounding)
The engine lists ten periods: the partial first one and then nine full ones - the last of which is the first lord again, now for its full length. A year is 365.25 days; nothing is rounded to months or days. The Vimshottari guide covers the sub-periods, which split each period by the same 120-year proportions.
Worked example, matched to the recorded response
- Moon 260.539904220° (the sample birth's Lahiri Moon) → Purva Ashadha, lord Venus (20 years).
- Elapsed 7.20657° of 13.33333° = 54.0493%, so 45.9507% of Venus's 20 years remains.
- 9.190143669857733 years = 3,356.70 days, about 9 y 2 m 8.6 d.
- From the birth instant 1993-07-04T03:57:11Z, Venus ends 2002-09-11T20:45:08.875Z; then Sun 6, Moon 10, Mars 7, Rahu 18, Jupiter 16, Saturn 19, Mercury 17, Ketu 7 and Venus 20.
Those are exactly the birth_balance.remaining_years and first end the recorded POST /v1/dasha/vimshottari response carries. On 6,086 test longitudes the tool's balance, lords, lengths and end instants equal the engine's to the last bit.
Years, months and days
The API never returns a Y/M/D balance - it returns decimal years and ISO-8601 start / end instants. The tool's Y/M/D line is for reading only: whole years, then months of one twelfth of 365.25 days (30.4375 days), then the remaining days. Almanacs that use 360-day or 365.2425-day years print slightly different figures; for the instants, trust end.
Common mistakes
- Using the KP Moon. The KP longitude is 5.81′ higher; for the sample birth that moves the balance from 9.1901 to 9.0377 years. Vimshottari uses the Lahiri Moon from
POST /v1/charts/birth. - Starting from the elapsed part. The balance is what is left of the nakshatra,
1 - elapsed, times the lord's years. - Expecting nine periods. The response has ten, so it covers the full 120 years after the partial first period.
- Recomputing dates with a different year length. Over 120 years, 365.2425 instead of 365.25 days moves an end date by almost a day.
FAQ
- Why does a tiny change in the Moon move the balance so much?
- The Moon covers a 13°20′ nakshatra in about a day, and the balance scales the whole period: for Venus, one arc-minute of Moon is 0.025 years, about 9 days.
- Does the time of birth enter anywhere else?
- Only as the start instant the periods are added to. The balance itself depends on the Moon's longitude alone.
- Where are the antardashas?
- In each period's
antardashaarray (levels2 to 5 go deeper). Look up the period running on a date withPOST /v1/dasha/lookup.