A tithi is completed every time the Moon gains 12° of longitude on the Sun. There are 30 tithis in a lunar month — 15 in the waxing half (Shukla Paksha, ending with Purnima) and 15 in the waning half (Krishna Paksha, ending with Amavasya).
Tithis vary from roughly 19 to 26 hours because the Moon’s speed changes. The tithi “of the day” is traditionally the one prevailing at local sunrise. Sometimes a tithi starts after one sunrise and ends before the next (a kshaya or skipped tithi); occasionally a tithi spans two sunrises (vriddhi).
