potm_minute
t = potm_minute(days_today - 1, olddir) +
static double potm_minute(double onday, int olddir);