How we calculate the Panchang
Every page on Shiv Panchang is computed from astronomy, not copied from a printed almanac. That is what lets us show any date from 1900 to 2100 for any city.
Positions of the Sun and Moon
We compute the apparent geocentric longitudes of the Sun and Moon using the open-source Astronomy Engine library, which accounts for precession and nutation. Sidereal (nirayana) positions are obtained by subtracting the Lahiri (Chitrapaksha) ayanamsa — the standard adopted by the Government of India's Calendar Reform Committee.
The five limbs
- Tithi: every 12° of Moon–Sun elongation. 30 tithis make a lunar month.
- Nakshatra: the Moon's sidereal longitude divided into 27 parts of 13°20′; each has four padas.
- Yoga: the sum of the sidereal longitudes of Sun and Moon, divided into 27 parts.
- Karana: every 6° of elongation (half a tithi); 4 fixed and 7 repeating karanas.
- Vara: the weekday, which in Hindu reckoning begins at local sunrise.
The end time of each element is found by solving for the exact moment the relevant angle crosses its boundary, to within about a second, then rounded to the minute.
Sunrise, sunset and moonrise
Rise and set times are for the upper limb of the disc touching the horizon, including standard atmospheric refraction, at the city's coordinates. A Hindu day runs from one sunrise to the next.
Muhurats
- Rahu Kaal, Yamaganda and Gulika: daytime divided into eight equal parts, with the inauspicious part depending on the weekday.
- Abhijit, Vijaya and Dur Muhurtam: daytime divided into 15 muhurtas; the night is divided likewise for Nishita.
- Brahma Muhurta: the 14th of the 15 night muhurtas — two muhurtas before sunrise.
- Choghadiya: day and night each divided into eight parts, in the traditional planetary sequence for the weekday.
- Hora: day and night each divided into twelve parts in Chaldean order.
- Varjyam and Amrit Kalam: each begins a fixed number of ghatis into the nakshatra and lasts 4 ghatis, scaled to that nakshatra's actual length (60 ghatis = the whole nakshatra). Varjyam uses the traditional Tyajya ghati table.
Months and years
Lunar months are found from successive new moons. A month is named after the sidereal sign the Sun enters during it; a month with no solar ingress is an Adhika (leap) month. We show both the Amanta (new-moon-ending) and Purnimanta (full-moon-ending) month names. Vikram and Shaka Samvat begin at Chaitra Shukla Pratipada.
Festival dates
Each festival is defined by its lunar month, paksha and tithi, plus the part of the day the tithi must cover — midday (Madhyahna) for Ram Navami and Ganesh Chaturthi, evening (Pradosh) for Diwali, midnight (Nishita) for Janmashtami and Maha Shivaratri, and moonrise for Karwa Chauth and Sankashti Chaturthi. Holika Dahan and Raksha Bandhan also avoid the Bhadra period. Because the tithi changes at different clock times around the world, the same festival can fall on different dates in different cities.
Results are checked against published almanac dates. Regional and sampradaya traditions sometimes follow different rules; where it matters, we note this on the festival page. For major life events, please also consult your family priest.
Accuracy
Calculated times are typically within one to two minutes of major Panchangs that use the Lahiri ayanamsa. Small differences can come from city coordinates and rounding.