finished time calculation