Tithi is the angular separation between Moon and Sun in increments of 12 degrees. A full synodic month has 30 tithis.
For practical use, sunrise and local timezone matter. The same Gregorian date can carry different tithi endings in different cities.