Fix endtime calculation