Tithi
What a tithi is, why a lunar month has 30, and why a tithi can be skipped or repeated.
A tithi is a lunar day: the time the Moon takes to gain 12° on the Sun. The Moon moves faster than the Sun along the sky, so the angle between them grows from 0° at new moon to 180° at full moon and on to 360°. Thirty steps of 12° make the 30 tithis of a lunar month.
Shukla and Krishna
The first 15 tithis, from new moon to full moon, form the shukla (waxing) paksha: Pratipada, Dwitiya, Tritiya and so on to Chaturdashi, then Purnima. The next 15 form the krishna (waning) paksha and end with Amavasya.
Why tithis vary in length
The Moon's speed changes along its orbit, so a tithi lasts from about 19 to 26 hours. When a tithi begins after one sunrise and ends before the next, no sunrise falls in it and it is kshaya (skipped). When a tithi covers two sunrises, it names both days and is vriddhi (repeated).
The tithi of the day
The tithi in force at sunrise, the udaya tithi, names the Vedic day. Shunya Shri shows it in the Vedic date, and says when the tithi changes during the day, for example "Saptami until 3:12 PM, then Ashtami".