Trying to figure out time calculation. Ugh.