fixed the time calculation so it will not be system specific