Time to kill calculation almost done. do not use.