some problem with the time format, I need to calc the seconds first