convert time to seconds, styling of progress