For the purposes of salat al-maghrib and isha, how do you calculate midnight?
Midnight is the halfway point between sunset and dawn (fajr).