allocated time calculation